Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 

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 and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
cant see Debug.print output (Read 496 times)
HomerRamone
Junior Member
**
Offline



Posts: 38
cant see Debug.print output
Mar 28th, 2022 at 8:16am
 
Debugging with a wrover dev kit.
Im getting output from breakpoints but not from Debug.print calls
eg
Quote:
Debug.print(DBG_VERBOSE, "State:%d", NewState);

is this normal ?
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1456
Re: cant see Debug.print output
Reply #1 - Mar 28th, 2022 at 11:17am
 
Thanks for the report.

Are you using Arduino Debug Utils library for this debugging output?
https://github.com/arduino-libraries/Arduino_DebugUtils

This will output the information over the serial monitor, so it will be separate from the debugging output in the Output window from the breakpoints directly.
Back to top
 
 
IP Logged
 
HomerRamone
Junior Member
**
Offline



Posts: 38
Re: cant see Debug.print output
Reply #2 - Mar 28th, 2022 at 11:21am
 
I am - but the serial window is empty too. Well aside from

Quote:
Opening port
Port open

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



Posts: 1456
Re: cant see Debug.print output
Reply #3 - Mar 28th, 2022 at 11:25am
 
Thanks for the update.

Can you attach the Build output from your system, with the verbose and show build properties enabled as shown at the top of the page.

If you can also attach a simple sketch to replicate this we will be able to assist more easily.
Back to top
 
 
IP Logged
 
HomerRamone
Junior Member
**
Offline



Posts: 38
Re: cant see Debug.print output
Reply #4 - Mar 28th, 2022 at 12:21pm
 
Build output
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
HomerRamone
Junior Member
**
Offline



Posts: 38
Re: cant see Debug.print output
Reply #5 - Mar 28th, 2022 at 12:21pm
 
sketch
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
HomerRamone
Junior Member
**
Offline



Posts: 38
Re: cant see Debug.print output
Reply #6 - Mar 28th, 2022 at 12:22pm
 
See above simple sketch and the build output.
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1456
Re: cant see Debug.print output
Reply #7 - Mar 28th, 2022 at 12:42pm
 
Thanks for the detail and output.

In the sketch the Serial port hasn't been initialised with Serial.begin(), if you add this in at the top of setup() it will work as expected (e.g Serial.begin(115200); if you use baud 115200 normally).
Back to top
 
 
IP Logged
 
HomerRamone
Junior Member
**
Offline



Posts: 38
Re: cant see Debug.print output
Reply #8 - Mar 28th, 2022 at 1:16pm
 
Gah, cant believe I missed that.
Thanks
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print