Posts: 799
Threads: 140
Joined: Apr 2022
Reputation:
33
Can $debug be used in Subs - for example to show the WatchLiist?
If so, how? I seem to be only able to see variables in the Main section, not the Sub
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, Western Australia.)

Please visit my Website at:
http://oldendayskids.blogspot.com/
Posts: 176
Threads: 15
Joined: Apr 2022
Reputation:
25
As a $ metacommand it is usually put somewhere in the top of your code, but it works for the whole program.
Put a STOP in your sub and you can watch/step there
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
Posts: 799
Threads: 140
Joined: Apr 2022
Reputation:
33
10-31-2025, 10:57 PM
(This post was last modified: 10-31-2025, 10:58 PM by PhilOfPerth.)
Thanks mdijkens
This still doesn't allow me to view the WatchList.
I just want a list of all variables I've used in the programme, including those in Subs (which may or may not be common or shared), so I can manually remove or change any I don't need.
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, Western Australia.)

Please visit my Website at:
http://oldendayskids.blogspot.com/