QB64 Phoenix Edition
Uing $Debug in subs - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10)
+---- Thread: Uing $Debug in subs (/showthread.php?tid=4060)



Uing $Debug in subs - PhilOfPerth - 10-31-2025

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


RE: Uing $Debug in subs - mdijkens - 10-31-2025

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


RE: Uing $Debug in subs - PhilOfPerth - 10-31-2025

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.