Show variable location with debugger

Everything else that doesn't fall into one of the other PB categories.
Jeff8888
User
User
Posts: 42
Joined: Fri Jan 31, 2020 6:48 pm

Show variable location with debugger

Post by Jeff8888 »

When I use the debugger is there someway to show the location of a variable? In the help it states if there is an arrow beside to variable color code, then you can click on the variable is see its location. I don't seem to be able to get this to happen? Any ideas? Thanks
User avatar
skywalk
Addict
Addict
Posts: 4218
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Show variable location with debugger

Post by skywalk »

Which location are you seeking?
In the variable viewer, memory viewer, source code?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Jeff8888
User
User
Posts: 42
Joined: Fri Jan 31, 2020 6:48 pm

Re: Show variable location with debugger

Post by Jeff8888 »

Variable viewer. I can find the address of a variable by putting the statement debug Str(@variable) in the program. It would be nice to have a way to do this directly in the debugger.
User avatar
Demivec
Addict
Addict
Posts: 4269
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Show variable location with debugger

Post by Demivec »

Jeff8888 wrote: Mon Jul 25, 2022 5:51 am Variable viewer. I can find the address of a variable by putting the statement debug Str(@variable) in the program. It would be nice to have a way to do this directly in the debugger.
@Jeff8888: I don't have an answer for the variable viewer except to say it's in alphabetical order with main scope variables at the top and variables in the current procedure at the bottom.

You can type '@variable' in the debugger's output window (line at the bottom labeled 'Debug' and that has a button labeled 'Display' at its end). You can also type other expressions in there and see the results in the output window too.

In the Memory Viewer you can also use some expressions. In the Range you can enter '@variable' in the first box and '+50' in the second box to show the first 50 bytes of memory from the address of the variable onward.
Post Reply