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
What's the difference between Debug and Release mode? (Read 96 times)
Bambo
Junior Member
**
Offline



Posts: 94
Liverpool, UK
What's the difference between Debug and Release mode?
Feb 7th, 2020 at 11:45am
 
Hi,

When using visual micro, what effect do the Debug and Release mode settings have?

Thanks!
Richard
Back to top
 

Richard Bamford
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10561
United Kingdom
Re: What's the difference between Debug and Release mode?
Reply #1 - Feb 7th, 2020 at 12:00pm
 
If "Micro>Debugger>Automatic Debugging" is enabled, which it is by default, then Release is a clean build without any debug overhead and "Debug" includes the initalization for the serial debugger and any additional code required to provide the breakpoint and pin viewer information/control. You should always ensure that any final live/release program version is free of debugging.

You can create new configurations by dropping down the list. You do not have to rely just on Release or Debug but it simpler if you do.

For any configuration, you can use the vMicro menus, properties and tool bars to configure debugger and optimization settings. Your settings are retained per configuration there is becomes easy to switch between a Release and a Debug mode by changing the configuration on the tool bar.

Therefore if you created a configuration called "My_Hardware_Debug" and set a specific hardware debugger you could easily move between no debug, serial debug and hardware debug by switching between Release, Debug and My_Hardware _Debug.

Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print