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/Release no effect (Read 4722 times)
Jo Sto
Ex Member
*


Debug/Release no effect
Mar 24th, 2014 at 3:16pm
Print Post  
I allways use for compile and upload the button "Local windows debugger"-"Auto"-"Release/Debug" in VisualStudio 2012 an it worked fine.

Today i installed the latest beta and now the relese/debug setting has no effect

I get allways

Code
Select All
Compiling 'curiosity' for 'Arduino Mega 2560 or Mega ADK'
Binary sketch size: 11854 bytes (used 5% of a 258048 byte maximum) (1,89 secs)
.
The usb debugger has been activated in 'Automatic Debugging' mode
.
Compiling debug version of 'curiosity' for 'Arduino Mega 2560 or Mega ADK'
Binary sketch size: 12468 bytes (used 5% of a 258048 byte maximum) (2,17 secs)
Uploading to I/O board using 'COM7'
...

 


first it compiles the release code, then the debug code
"micro debug" is set to "none"

what do i wrong? 



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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug/Release no effect
Reply #1 - Mar 24th, 2014 at 3:30pm
Print Post  
Hi Jo,

There are two ways to enable the debugger.

1)

Novice mode (Automatic Debugging) is on by default. Novice mode used to only start the debugger if the configuration was not set to Release. The problem was that novice users didn't see the release option and in later versions of Visual Studio release is sometimes called something else.

Novice mode will always produce a debug compile when you click "Debug>Start". 

note: Visual Micro will always make a release compile if you click "Debug>Start without debugging" regardless of any debugger settings.

2)

You can switch off novice mode by un-ticking "Tools>>Visual Micro>Automatic Debugging". You can then choose which configuration(s) "Debug/Release/MySpecialDebug" etc. to enable debugging for by setting the project property (Micro Debug=Full) when the desired configuration is active.

The Youtube video on the debugger page shows how Visual Micro works with Automatic Debugging switched off but it is as simple as setting (Micro debug) = Full

Summary

Hopefully you can now see the clear distinction between the two modes. Debug/release etc was just a step too far for new users and that experienced users have full control.

Thanks
  
Back to top
IP Logged
 
Jo Sto
Ex Member
*


Re: Debug/Release no effect
Reply #2 - Mar 25th, 2014 at 1:04pm
Print Post  
Thank you, everything ok. I have not noticed the checkbox in Tools ...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug/Release no effect
Reply #3 - Mar 25th, 2014 at 1:05pm
Print Post  
Great, thanks for the update
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint