OnDidChangeBreakpoints() doesnt work the same way in theia as in vscode
#8,851 opened on Dec 10, 2020
Description
Notification about added, removed, or changed breakpoints received via onDidChangeBreakpoints() doesn't work the same way in theia as in vs code. Only added and removed breakpoints objects were returned via event when the condition of the breakpoint (for conditional breakpoint)in the debug editor was changed .
Steps to Reproduce:
1 Try using onDidChangeBreakpoints() from vscode extension.
vscode.debug.onDidChangeBreakpoints( event => { console.log(event); }) 2. Open the file in editor. 3. Right Click on Breakpoint. 4.Select Edit Breakpoint and try adding an expression. 5 Event is triggered but doesn't return changed Breakpoints with the updated condition like vscode. Instead only added and removed breakpoints are returned.
This functionality was required for validating the expression of the conditional breakpoint from vscode extension even when debug event is not started.
- Theia Version: 1.7