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 Debug code inserted (Read 1371 times)
Red Baron
Member
***
Offline


Posts: 106
Location: Germany
Joined: Jul 29th, 2015
Debug code inserted
Apr 4th, 2021 at 8:23am
Print Post  
Hi,

I have a new AVR (Arduino Uno) project. I did not change any project options. Configuration is "Release", option "Debug" is "Debug: Off". But debug code is still inserted. How to avoid that?

E.g. in .ino:

void setup() {
   uint32_t m = millis();
}

is converted to .cpp:
void setup() {
   MicroDebug.init(3000); 
   MicroDebug.begin(115200); 
   if (MicroDebug.outPacketStart(true)) { 
      VM_DEBUGGER_SOFT_TRANSPORT.print("VMDPV_1|1_VMDPV\n"); 
      MicroDebug.DBG_YieldAndWait(10); MicroDebug.outPacketEnd(); 
   } 
   MicroDebug.start(false, true); 
   if (MicroDebug.outPacketStart(true)) { 
      VM_DEBUGGER_SOFT_TRANSPORT.print("VMDPR_"); 
      MicroDebug.outPacketEnd(); 
   }
   uint32_t m = millis();
}
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug code inserted
Reply #1 - Apr 6th, 2021 at 11:31am
Print Post  
Please reselect vMicro>Debugger>Debug=Off
  
Back to top
WWW  
IP Logged
 
Red Baron
Member
***
Offline


Posts: 106
Location: Germany
Joined: Jul 29th, 2015
Re: Debug code inserted
Reply #2 - Apr 6th, 2021 at 12:50pm
Print Post  
As already mentioned  "Debug" is "Debug: Off"
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: Debug code inserted
Reply #3 - Apr 6th, 2021 at 2:46pm
Print Post  
Please set the Debug option to e.g. Serial, Then set it back again to Off.
  
Back to top
 
IP Logged
 
Red Baron
Member
***
Offline


Posts: 106
Location: Germany
Joined: Jul 29th, 2015
Re: Debug code inserted
Reply #4 - Apr 9th, 2021 at 5:03am
Print Post  
Thanks, that solved the problem!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint