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

0 Members and 1 Guest are viewing this topic.

Offline hanness

  • Forum Regular
  • Posts: 210
    • View Profile
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 by hanness on July 26, 2021, 04:51:44 am

Offline luke

  • Administrator
  • Seasoned Forum Regular
  • Posts: 324
    • View Profile
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: 210
    • View Profile
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!