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 Debugger keeps crashing (Read 6398 times)
Brewer531
Newbies
*
Offline


Posts: 3
Joined: May 26th, 2015
Debugger keeps crashing
May 26th, 2015 at 8:25pm
Print Post  
I am on Windows 8.1 using Visual Studio 2013 with the latest version of visual micro. My program compiles fine but when I start in the debugger, I get a message in the serial console that its paused. When I click on the expressions window, it goes away and the debugger is crashed. I have to restart visual studio to get the serial monitor to work again after that. I am using arduino IDE 1.6.4 and a Arduino Uno at 115200 baud. I just have the simplest example program (blink and led).
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger keeps crashing
Reply #1 - May 26th, 2015 at 8:30pm
Print Post  
Hi,

Sorry to hear of the problem.

The first thing to understand is if you have your windows docked so that the serial monitor hides when you activate the expressions window? 

Hiding or closing the serial monitor causes the debug to stop. Either opening the serial monitor again or uploading again will restart debugger. (The debugger is a serial debugger and the serial monitor is the main controller)

If this doesn't make sense to you then please upload or email a screen shot of your ide before and after clicking the expressions window.

Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger keeps crashing
Reply #2 - May 26th, 2015 at 8:37pm
Print Post  
One other point to note. Because we use serial, if the debugger closes and re-opens there is a possibility that the arduino will still be paused at a breakpoint. However the debugger won't know about it. 

In this case F5 won't work but you can use the serial monitor to send the letter 'c' to the arduino. This will force a "continue".

Alternatively switch on the DTR checkbox on the serial monitor. This will force the arduino to re-boot each time the debug/serial begins (ie: when the serial monitor is opened). The DTR checkbox will work on boards such as Uno, Due it's a standard part of how arduino serial works. This is actually the reason why an upload will always cause the debug to start again, one thing the upload does is set the DTR to cause the board to reset.

Hope this makes sense.
  
Back to top
IP Logged
 
Brewer531
Newbies
*
Offline


Posts: 3
Joined: May 26th, 2015
Re: Debugger keeps crashing
Reply #3 - May 26th, 2015 at 8:48pm
Print Post  
Ah, thank you. Not docking the serial window makes things work much better. But now my expressions window says "waiting for debug breakpoint data". Is there something I need to configure right to get the expressions window working?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger keeps crashing
Reply #4 - May 26th, 2015 at 8:55pm
Print Post  
Hi,

Great. You can play with docking you will find it possible to have the serial monitor small in one corner or position and the expression in a different location. It sounds like you had them both in the same dock group. If you move the undocked serial monitor without holding the CTRL key then you will find many more potential doc positions.

The expression window says waiting for data if you have not defined any breakpoint watch {expression/variables}. Otherwise it means the first breakpoint (with watch expressions) hasn't yet been hit. 

Have you set any watch expressions and/or "when hit" message (seen the docs?)

Thanks

  
Back to top
IP Logged
 
Brewer531
Newbies
*
Offline


Posts: 3
Joined: May 26th, 2015
Re: Debugger keeps crashing
Reply #5 - May 26th, 2015 at 9:08pm
Print Post  
Thank you. Total newbie questions so sorry about that. I guess I was expecting it to show all the locals variables by default.
« Last Edit: May 26th, 2015 at 9:08pm by Brewer531 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger keeps crashing
Reply #6 - May 26th, 2015 at 9:18pm
Print Post  
Hi,

Yes everyone would like that Smiley There is a new version under development that will provide auto discovery of locals and many other things, also better support for arrays etc. 

However the docs and the video show what is currently possible, it's an alternative to serial.print messages in the code as opposed to a full debugger replacement.

The advanced version, when it arrives, will be a free upgrade for existing customers.

Alternatively you can use your code in a native atmel gcc/cpp project and debug with a hardware programmer. Then you get native atmel debugging which is very detailed but difficult to configure.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint