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 Can I use the debugger? (Read 5576 times)
kito408
Newbies
*
Offline


Posts: 8
Joined: May 26th, 2015
Can I use the debugger?
May 29th, 2015 at 2:11am
Print Post  
Hi,

I have a teensy 3.1.  I tried to set breakpoints and use the debugger, but it does not seem to work.  The programs still runs, but does not stop on the breakpoint.  Is it because the teensy 3.1 is not supported?  Or because I have to buy it?   
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can I use the debugger?
Reply #1 - May 29th, 2015 at 11:31am
Print Post  
Hi,

If the debugger is active you will see in the compiler output "Compiling debug version of ..."

So post the build output so we can see what you are doing and also confirm if you have the tool bar set to Release or Debug

Thanks
  
Back to top
IP Logged
 
kito408
Newbies
*
Offline


Posts: 8
Joined: May 26th, 2015
Re: Can I use the debugger?
Reply #2 - May 29th, 2015 at 6:14pm
Print Post  
I attached the build output and also the Micro Build Output from the MicroDebugTrace.  I am using debug build.  I do see I set lines to have breakpoint on, these lines show up on the MicroDebugTrace output as the program runs.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can I use the debugger?
Reply #3 - May 29th, 2015 at 6:31pm
Print Post  
Thanks for the info.

The debugger us running okay otherwise you would not see the debug trace. The is a breakpoint/trace point that is being hit for line 23. 

If doesn't look like you have set any "When Hit" message or any "watch expressions", which would cause the "Continue Execution" checkbox to become valid?

Is "tools>visual micro>debug trace only" ticked by mistake?
« Last Edit: May 29th, 2015 at 11:17pm by Tim@Visual Micro »  
Back to top
IP Logged
 
kito408
Newbies
*
Offline


Posts: 8
Joined: May 26th, 2015
Re: Can I use the debugger?
Reply #4 - Jun 1st, 2015 at 7:17pm
Print Post  
Thanks.  The break points hits now and pauses.  In the expressions dialog I only see "Waiting for debug breakpoint data".  I thought the global variables would automatically show up here.  Is there some other option I need to set?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can I use the debugger?
Reply #5 - Jun 1st, 2015 at 7:36pm
Print Post  
Hi,

The docs are improving all the time. if you scroll down the index page you will find "working with breakpoints". There is also the debug overview page and youtube video.

http://www.visualmicro.com/page
http://www.visualmicro.com/page/User-Guide.aspx?doc=index
http://www.visualmicro.com/page/User-Guide.aspx?doc=Working-With-Breakpoints.htm...
https://www.youtube.com/watch?v=fFM8_RhIG0U

To watch variables or expressions and/or add text messages use the "When Hit" breakpoint property

1)
Code
Select All
{millis()}{Temperature} 



2)
Code
Select All
Millis is {millis()} and the current temperature is {Temperature}  



and you can optionally set a break-point condition:-

Code
Select All
Temperature>75 




Thanks
« Last Edit: Jun 1st, 2015 at 7:39pm by Tim@Visual Micro »  
Back to top
IP Logged
 
kito408
Newbies
*
Offline


Posts: 8
Joined: May 26th, 2015
Re: Can I use the debugger?
Reply #6 - Jun 4th, 2015 at 12:19am
Print Post  
Thanks for the links.  I am now able to set break points and change variable values.  Awesome! 

One issue I had is the documentation is that implies that once the "=?" post fix is set you can modify the variable when paused on any break point, but this is not actually the case.  I seem to only be able to modify a variable when paused on the specific break point that has the variable set with the "=?".  If there is another break point which is paused, the GUI still allows changing the variable, but the variable does not actually change.

« Last Edit: Jun 4th, 2015 at 12:20am by kito408 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can I use the debugger?
Reply #7 - Jun 4th, 2015 at 12:24am
Print Post  
Hi,

Great.

The docs are evolving. Actually you can update any globals from any break point and locals in the same context any anytime. 

However the reader only checks for updates when the execution point passes a breakpoint so if no breakpoints are hit then no changes will be applied.

In "trace" (non-break) mode it's the same, the arduino doesn't need to stop for changes to be made.
« Last Edit: Jun 4th, 2015 at 12:26am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint