-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Setting Hit Count for a breakpoint sometimes sets Expression instead #12547
Comments
The source of the issue is that at step 4 the value initially selected in the select component of the It looks like the code in the theia/packages/debug/src/browser/editor/debug-breakpoint-widget.tsx Lines 218 to 230 in c1a2b7b
However, this property sets the selection at construction time only; it has no effect when the component is re-rendered. I'll try to provide a patch. |
Steps to Reproduce:
Using Theia Electron (or Browser) Example on the master branch,
add a source breakpoint in a JavaScript (or TypeScript) file.
Edit the breakpoint and set a Hit Count.
Edit the breakpoint again and remove the Hit Count.
Edit the breakpoint once again and set a Hit Count.
Note that the breakpoint has an Expression set to the value entered for the Hit Count (which can be seen in a tooltip for the breakpoint, and also in a debugger).
The text was updated successfully, but these errors were encountered: