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 "serial debugger was delayed" when using debugger inside .cpp (Read 565 times)
HennesyGTS
Newbies
*
Offline


Posts: 1
Joined: Mar 22nd, 2020
"serial debugger was delayed" when using debugger inside .cpp
Mar 22nd, 2020 at 12:21am
Print Post  
Hello,

I'm only a couple days into Visual Micro myself,  purchased a license yesterday and I am running into a significant bit of frustration with not being able to stop at breakpoints I set. Im getting the exact same message as the original poster.

Coming from a .NET/Java background I'm not understanding why I cant trigger breakpoints? Do I manually need to present the breakpoint an action?  You mentioned he needs to debug on a different port? How can this be done ?

Sorry for so many questions, but I use quite a bit of OOP in my code and I really need breakpoints to work when reaching out to a new classes Sad

I have disabled all of the Serial.Print statements in my code in order to get this to work, but Im still recieiving the message.

Any help would certainly be appreciated!!

Thanks!
« Last Edit: Mar 22nd, 2020 at 12:31am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "serial debugger was delayed" when using debugger inside .cpp
Reply #1 - Mar 22nd, 2020 at 12:29am
Print Post  
I have split into a new post so that we don't annoy the person who created the post you selected to join.

The debugger should stop ar breakpoints. One question is if you are using serial.read in your code?. The reads are the issue for "break/stop"

You should not try to compare to .net debugger. Arduino has tiny memory. You have not said which board you are using so it is difficult to comment on the best debug option.  The serial debug is a simple replacement for serial.print debug statements and gives a number of other benefits. However it is not a windows debugger. Some boards support hardware debugging which then uses the standard windows debugger with live step/watch etc. but it can be slow and restrictive. There are plenty of options you just need to say what you are using.


tip: usb debug on shared port: Serial.print/println() is not so much of an issue, read() is a problem unless using trace only.

Can you confirm same issue in simple new sketch with breakpoint in some .ino code?
« Last Edit: Mar 22nd, 2020 at 12:31am by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "serial debugger was delayed" when using debugger inside .cpp
Reply #2 - Jun 27th, 2020 at 9:38pm
Print Post  
This Topic was moved here from Usb/Serial/Udp Debugging [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint