VS Arduino
Visual Micro >> General Board >> What's the difference between Debug and Release mode?
https://www.visualmicro.com/forums/YaBB.pl?num=1581075959

Message started by Bambo on Feb 7th, 2020 at 11:45am

Title: What's the difference between Debug and Release mode?
Post by Bambo on Feb 7th, 2020 at 11:45am
Hi,

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

Thanks!
Richard

Title: Re: What's the difference between Debug and Release mode?
Post by Visual Micro on 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.


VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.