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
Hot Topic (More than 8 Replies) cant see Debug.print output (Read 1396 times)
HomerRamone
Junior Member
**
Offline


Posts: 38
Joined: Feb 5th, 2022
cant see Debug.print output
Mar 28th, 2022 at 7:16am
Print Post  
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: 2174
Joined: Feb 13th, 2019
Re: cant see Debug.print output
Reply #1 - Mar 28th, 2022 at 10:17am
Print Post  
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
Joined: Feb 5th, 2022
Re: cant see Debug.print output
Reply #2 - Mar 28th, 2022 at 10:21am
Print Post  
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: 2174
Joined: Feb 13th, 2019
Re: cant see Debug.print output
Reply #3 - Mar 28th, 2022 at 10:25am
Print Post  
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
Joined: Feb 5th, 2022
Re: cant see Debug.print output
Reply #4 - Mar 28th, 2022 at 11:21am
Print Post  
Build output
  

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


Posts: 38
Joined: Feb 5th, 2022
Re: cant see Debug.print output
Reply #5 - Mar 28th, 2022 at 11:21am
Print Post  
sketch
  

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


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


Posts: 2174
Joined: Feb 13th, 2019
Re: cant see Debug.print output
Reply #7 - Mar 28th, 2022 at 11:42am
Print Post  
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
Joined: Feb 5th, 2022
Re: cant see Debug.print output
Reply #8 - Mar 28th, 2022 at 12:16pm
Print Post  
Gah, cant believe I missed that. 
Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint