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 VS Build Configurations (Read 2475 times)
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
VS Build Configurations
Jan 28th, 2017 at 8:13pm
Print Post  
I can't for the life of me figure out how to put a conditional in the code that is dependant on whether I can doing a Debug or Release build.  My understanding is VS  should include a _DEBUG #define for a Debug build, but I am not seeing it.  What am I missing?

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS Build Configurations
Reply #1 - Jan 28th, 2017 at 8:34pm
Print Post  
Hi,

Vs and arduino have different systems so you should use the visual micro project property called "define _DEBUG constant. The property is fed to VS for intellisense and arduino for compile.

In the current release the property is in the wrong section (see attached picture). The property is a Configuration specific property and should be in the section above.

You can use the property to assign a number, if 0 the #define is excluded.

Click "vMicro>Project Properties" or right click project name > properties


« Last Edit: Jan 28th, 2017 at 8:36pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: VS Build Configurations
Reply #2 - Jan 28th, 2017 at 8:56pm
Print Post  
Tim,

That works!  Thanks!

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint