Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Interactive Watch (Read 3324 times)
Herbert M
Newbies
*
Offline


Posts: 1
Joined: Jan 30th, 2013
Interactive Watch
Feb 18th, 2013 at 10:44am
Print Post  
The only way I found to watch variables is specifying them in breakpoints.
This is very laborious for me, particularly if some variables have to be watched at different breakpoints when deeply investigating a program.  Cry

It would be very helpful to be able to specify watches separately from the breakpoints. 

As far as I understand the working principle of the debugger, it should be even possible to interactively watch variables when halting at a breakpoint without recompiling and reloading: The PC software sends commands to a µC resident driver that returns the contents of  the required RAM positions of the variables. Smiley
« Last Edit: Feb 18th, 2013 at 10:45am by Herbert M »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Interactive Watch
Reply #1 - Feb 20th, 2013 at 7:43pm
Print Post  
This might be a good idea if you are saying that the ram positions can be extracted from the elf or hex? Do you have an example of how to do that?

Are you suggesting that both global and local variables would be available.

One point to keep in mind is that you can enter expressions not just variables. So we would also need both features.

However, if there is a way to show you a list of variables on a running arduino and allow you to click the ones you want to watch without re-compile I would be very keen to implement this feature.
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Interactive Watch
Reply #2 - Feb 21st, 2013 at 8:06am
Print Post  
Tim
One can have the linker place the variables in an absolute position and I am sure that you can get variable positions from the linker output.

A long time ago I did a debugger in hardware that dumped the variables on another port. As far as I can remember I used the linker to locate the variables and then just used the offset from that point to get what I wanted to see. I do think that I had to dump the whole lot but I cannot recall anymore.

I think it is possible though.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint