New dev build available, get it from
https://www.qb64.org/portal/development-build/This is what to look for:
- Issue reported above by mpgcan regarding declaring user32.dll procedures in Windows has been addressed.
- Can now set values of _BIT variables.
- Option in Debug menu to disable auto-insertion of $DEBUG meta command as suggested by Steve.
✨ **NEW** ✨
- Watchpoints: you can now set watchpoints, which are like breakpoints but for variable values. You can, for example, create a watchpoint for variable x&, with condition "= 1000" and hit F5 so your program will run until x& = 1000.
Here's how it works:
- Start your $Debug-enabled program in pause mode (either with F7 or F8).
- Hit F4 to show the "Add Watch" dialog.
- Here, you can double click variables to add them to the Watch Panel, or you can select a variable and click the "Add Watchpoint" button.
- A new dialog will pop asking for a condition:
[ You are not allowed to view this attachment ]
- The valid operators are =, <=, >=, and <>. You must compare a variable's contents with a literal value (no other variables, no math, no scientific notation).
- If you also add the variable to the watchlist, it will show in the Watch Panel, as usual, and an extra red bullet will be placed right next to its name, so you know there's a watchpoint set.
[ You are not allowed to view this attachment ]
- Now you can hit F5 and let your program run until the variable has the target value. If the condition is ever met, execution is paused and you get this dialog:
[ You are not allowed to view this attachment ]
- From here you can click "OK" to continue in the IDE so you can look around the line that set the variable's value as you expected, or you can click "Clear Watchpoint" to remove the watchpoint so execution can continue.
- If you don't clear the watchpoint from the dialog, you can go back to the F4 dialog later and delete the watchpoint condition manually.
Let me know how it works in your tests. 🥰