Skip to content

Disabled breakpoints are deleted during execution. #16770

@mahadevaiahn

Description

@mahadevaiahn

Bug Description:

During execution, disabled break-points are deleted instead of being disabled.

Image

Steps to Reproduce:

  1. Add the below code on the editor
    function callMe(i) {
    // Return a string showing the call index.
    return "Call" + i;
    }

         function main() {
           // Call the function from a for-loop and print results
         
           const index = [];
           const idx = [];
         
           for (let i = 0; i < 10000; i++) {
             const result = callMe(i);
         
             // append to the array
             index.push(i);
             idx.push(i);
         
             console.log(`i=${i}, result=${result}`);
           }
         
           console.log("pause");
         
           for (let i = 0; i < 10000; i++) {
             const result = callMe(i);
         
             // append to the array
             index.push(i);
             idx.push(i);
         
             console.log(`i=${i}, result=${result}`);
           }
         
           console.log("ende");
         }
         
         // Run main
         main();
    
  2. Set multiple breakpoints, select any valid lines.

  3. Execute the program, it stops at one of the break-point.

  4. Disable the breakpoints. Observe that the break-points are deleted.

NOTE: When only one break-point exists, this can disabled and enabled.

Additional Information

  • Operating System: Linux
  • Theia Version: I tested on the latest version of master.

Related issue : #8222

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbugs found in the applicationdebugissues that related to debug functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions