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


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
What's the difference between Debug and Release mode?
Feb 7th, 2020 at 11:45am
Print Post  
Hi,

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

Thanks!
Richard
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: What's the difference between Debug and Release mode?
Reply #1 - Feb 7th, 2020 at 12:00pm
Print Post  
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 TopicPrint