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 Suddenly - Can`t use debug mode (Read 5261 times)
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Suddenly - Can`t use debug mode
Apr 17th, 2016 at 10:08pm
Print Post  
Suddenly, I`ve got the error in debug mode (no problems in release mode) in one project in solution (consist of 3 projects). 
Screenshot is attached. 
I`ve checked settings of the project with problem in comparing other projects - no difference. 

Spent a few hours try to find out what is it, but currently I have no ideas any more... 

Visual Micro version is 1603.1.0, Visual Studio 2012.

Thanks! 
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Suddenly - Can`t use debug mode
Reply #1 - Apr 18th, 2016 at 2:35pm
Print Post  
Hi,

Can you switch on "vMicro>Verbose Messages" then build and email the output to info[at]visualmicro.com or attach as .txt file.

Can you also please say which board and arduino ide version you are using with visual micro?

Thanks
  
Back to top
IP Logged
 
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Re: Suddenly - Can`t use debug mode
Reply #2 - Apr 19th, 2016 at 9:37pm
Print Post  
Hi! 

Arduino IDE version is 1.6
Boards are Mega 2560 and Uno. 

Please, look for the build output in your mail. 

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Suddenly - Can`t use debug mode
Reply #3 - Apr 19th, 2016 at 9:56pm
Print Post  
Thanks for the output.

Can you also please email the following file to me

C:\Users\flyeye\AppData\Local\V.Micro\Arduino\Builds\Focuser\uno\Focuser.cpp
  
Back to top
IP Logged
 
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Re: Suddenly - Can`t use debug mode
Reply #4 - Apr 20th, 2016 at 10:00am
Print Post  
Done. Please, look in the mail box. 
Thank you!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Suddenly - Can`t use debug mode
Reply #5 - Apr 20th, 2016 at 12:27pm
Print Post  
Thanks for sending the file.

Until arduino 1.6.6 the arduino.h and other headers were inserted before the first line of code. In this case the first line of code is inside a condition you have added to your code #ifdef DEBUG_ON

There is some work planned for visual micro to make the recent arduino change but it also affects intellisense so we take a little more time.

You can solve the problem by adding dummy code to the top of your .ino code. For example add this code to the top of the source:-

Code
Select All
int dummy = 0; 



Thanks

....

If you want to understand more then I have taken the code form the Focuser.cpp and shown it below:-

Code
Select All
#define		CMD_BUFFER_SIZE     128


#include <SoftwareSerial.h>

#ifdef DEBUG_ON
#include <Wire.h>
#include <LiquidCrystal_I2C.h>


#include "arduino.h"
#include <Wire.h>
#include <SoftwareSerial.h>
SoftwareSerial VM_DBG_Transport = SoftwareSerial(15,14);
 #include <VM_DBG/VM_DBG.h>
 #include <VM_mem_check.h>

//
void serialEvent();
//
unsigned long _VM_AUTO_REPORT_LAST_MS_	=	0L;

LiquidCrystal_I2C lcd(0x27,20,4);
#endif
 


  
Back to top
IP Logged
 
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Re: Suddenly - Can`t use debug mode
Reply #6 - Apr 20th, 2016 at 3:10pm
Print Post  
Hm.. Yes, you are right. I just moved line 

const char SketchVersion[] = "3.0.1";

to the top and it works now.
Ok, I see the root of the probem and try to be careful later. 

Thank you very much!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Suddenly - Can`t use debug mode
Reply #7 - Apr 20th, 2016 at 3:12pm
Print Post  
No problem. This area has been problem.for years but in a few weeks it will be much more intelligent.

Thanks for the update
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint