-
-
Notifications
You must be signed in to change notification settings - Fork 445
Improve the UX of conditional expressions and debugging #2278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It works for me with the Arduino Zero with IDE 2.2.1. Did you select
I could not reproduce it with 2.2.1.
Thanks for taking the time and summing all these up. Not all are bugs or IDE2 imperfections; I will focus solely on your conditional breakpoints defect. If you have not selected |
For instance: -
Thank you for not thinking that I'm just time waster and for not getting upset with my comments. |
You can also try this: I can't get these 3 conditions in. |
See (the gif) how VS Code supports conditional breakpoints from the Breakpoints view: https://code.visualstudio.com/docs/editor/debugging#_conditional-breakpoints Theia needs catch up with the new debugger UX |
Describe the problem
Using an Arduino Zero
Plug in and ensure board configured with IDE 2.2.1
Load a simple example - Digital -Button.
compile and start debug from the debug icon just below tools menu
at line 42 or within the loop somewhere add int x=0;
somewhere below that Add if you can a conditional breakpoint with an expression lets say x=1
run the debug and see where it stops it probably won't
now see if you can edit the condition
now see if it stops anywhere.
There seems to be a lot of bugs in the conditional breaks or watch conditions
To reproduce
Too many
Expected behavior
I expect first of all that a variable being selected can be used as a debug watched variable without having to type it in.
I expect the conditional break to right click on the left of the line number to actually give me something to type into.
I expect the same for watches.
I expect that if I haven't typed it in correctly that the IDE will tell me that something is wrong straight away.
I expect some examples of what you can type into a conditional box to be available.
I don't expect to have to reload a sketch just to get a type-in box
I really don't expect to have three debug icons to choose from and if I choose the wrong one I get nothing or another gdb-server tab appearing.
These are just a few of my expectations having paid for an Arduino Zero for the specific reason of debugging.
Arduino IDE version
2.2.1
Operating system
Windows
Operating system version
11
Additional context
I hope the IDE will come out soon with a new version with a lot of these bugs fixed.
Issue checklist
The text was updated successfully, but these errors were encountered: