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 How to make debug work? (Read 5055 times)
SUO
Newbies
*
Offline


Posts: 3
Joined: Oct 25th, 2014
How to make debug work?
Oct 25th, 2014 at 11:51am
Print Post  
Hi
I got a similar problem where it does not debug. What project settings are required to be changed.
« Last Edit: Oct 25th, 2014 at 1:39pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to make debug work?
Reply #1 - Oct 25th, 2014 at 1:40pm
Print Post  
Hi,

Can you tell me if your sketch uses serial.begin() and at what speed?

Thanks
« Last Edit: Oct 25th, 2014 at 1:40pm by Tim@Visual Micro »  
Back to top
IP Logged
 
SUO
Newbies
*
Offline


Posts: 3
Joined: Oct 25th, 2014
Re: How to make debug work?
Reply #2 - Oct 25th, 2014 at 6:28pm
Print Post  
Hi

Yes, I do use Serial.begin. Baudrate 115200.

I did work initially when I used just after trial installation. It stopped working within trial period. I use Atmel Studio.

I purchase license but still not working. 

It also indicate it is running under administrator.

When removing all serial or matching baudrate info it works but not always. I/O view not sure if it should indicate data. When it does step it does not provide much info. 

Also tried again with a led blink program but consistency lack.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to make debug work?
Reply #3 - Oct 25th, 2014 at 6:32pm
Print Post  
Hi,

It's the same system regardless of the trial.

It sounds like too many serial messages are being sent by the arduino. The arduino has a small buffer so if it overflows with huge streams of messages it can cause the serial to fail.

If you are using the serial heavily or using .read() in your code then you would need to use a different serial port for debug of a couple of digital pins.

When you say it breaks sometimes but doesn't show much information what do you mean. Does it show the variables you have specified in the "when hit" / watch list? 

Can you give me an example of a "when hit" message that you have used?

Thanks
  
Back to top
IP Logged
 
SUO
Newbies
*
Offline


Posts: 3
Joined: Oct 25th, 2014
Re: How to make debug work?
Reply #4 - Oct 25th, 2014 at 6:36pm
Print Post  
Attached screen shot
  

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to make debug work?
Reply #5 - Oct 25th, 2014 at 6:42pm
Print Post  
Hi,

Thanks for the image but it does not show what variables you are trying to watch. 

You have to add a break point "When Hit" message to watch variables.

http://www.visualmicro.com/page/User-Guide.aspx?doc=Working-With-Breakpoints.htm...

It might also be useful to know that the debugger has to inject serial into a temp copy of the sketch at compile time. Because it injects the breakpoint in your example will be inside the "if" at the end of the line fore the closing brace }

If you are new to the debugger I suggest putting the breakpoint on the blank line before your "if" statements
« Last Edit: Oct 25th, 2014 at 6:43pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint