Author Topic: On my wish list as a compliment to $Debug - a watch window  (Read 155 times)

0 Members and 1 Guest are viewing this topic.

Offline hanness

  • Forum Regular
  • Posts: 177
On my wish list as a compliment to $Debug - a watch window
« on: July 23, 2021, 04:41:55 AM »
I know that I may be pushing my luck here, but along with $Debug a perfect compliment would be a watch window where we could set variables to be watched as we step through the program or pause at a breakpoint. For now, I add test code to my program to display the values of variables but having a watch window where one could keep an eye on variables would be a wish come true for me.

Marked as best answer/most recent update by hanness on July 26, 2021, 11:51:44 AM

Offline luke

  • QB64 Developer
  • Seasoned Forum Regular
  • Posts: 285
Re: On my wish list as a compliment to $Debug - a watch window
« Reply #1 on: July 23, 2021, 11:25:32 AM »
Wait for it, it's coming soon™

A bit more detail: the protocol used for communicating breakpoint and run information can also be used to communicate variable values. The program being debugged already contains some foundational work for variable inspection, the hard part is the IDE side of things.

When you consider all the different kinds of variables you can have (numeric, string, arrays, TYPEs, arrays of TYPEs etc) you can imagine how it can be non-trivial to get the user interface right for it.

But rest assured, such a feature is planned.
« Last Edit: July 23, 2021, 11:29:16 AM by luke »

Offline hanness

  • Forum Regular
  • Posts: 177
Re: On my wish list as a compliment to $Debug - a watch window
« Reply #2 on: July 23, 2021, 12:09:40 PM »
Wow, that's wonderful to hear. Yes, I can imagine that it's a lot of work, but rest assured that the efforts would be GREATLY appreciated!