Show variable location with debugger
Show variable location with debugger
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
Re: Show variable location with debugger
Which location are you seeking?
In the variable viewer, memory viewer, source code?
In the variable viewer, memory viewer, source code?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Show variable location with debugger
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.
Re: Show variable location with 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.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.
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.