Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
"serial debugger was delayed" when using debugger inside .cpp (Read 64 times)
HennesyGTS
Newbies
*
Offline



Posts: 1
"serial debugger was delayed" when using debugger inside .cpp
Mar 22nd, 2020 at 12:21am
 
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!
Back to top
« Last Edit: Mar 22nd, 2020 at 12:31am by Visual Micro »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10561
United Kingdom
Re: "serial debugger was delayed" when using debugger inside .cpp
Reply #1 - Mar 22nd, 2020 at 12:29am
 
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?
Back to top
« Last Edit: Mar 22nd, 2020 at 12:31am by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print