Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uing $Debug in subs
#1
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.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply
#2
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
Reply
#3
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.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Live Q&A, Using $DEBUG FellippeHeitor 13 1,947 04-12-2025, 03:34 AM
Last Post: FellippeHeitor

Forum Jump:


Users browsing this thread: 1 Guest(s)