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
Hot Topic (More than 8 Replies) Fixed: Error debugging (Read 13165 times)
Juan
Newbies
*
Offline


Posts: 9
Location: Bilbao
Joined: Sep 20th, 2012
Fixed: Error debugging
Sep 24th, 2012 at 12:45pm
Print Post  
Hello,

I have problems to debug my Arduino project. On the Arduino board, the program runs OK, but when I debug it I find the next error compiling. I don't know how solve it.
« Last Edit: Oct 18th, 2012 at 9:40pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error debugging
Reply #1 - Sep 24th, 2012 at 1:52pm
Print Post  
Does it work if you changes this setting to False?

"Tools->Options->Visual Micro->Compiler Optimization->Library Modified"
  
Back to top
IP Logged
 
Juan
Newbies
*
Offline


Posts: 9
Location: Bilbao
Joined: Sep 20th, 2012
Re: Error debugging
Reply #2 - Sep 24th, 2012 at 2:07pm
Print Post  
Thanks for the fast replay!

I have already changed this option but the result is the same. Sad
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error debugging
Reply #3 - Sep 24th, 2012 at 4:47pm
Print Post  
What happens if you put breakpoints on real lines of code instead of on comment lines?

What follows is not causing the error but for your information

If you want to share the serial port with the debugger at 9600 speed you should set the LocalSpeed and RemoteSpeed to 9600 in the project property window.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error debugging
Reply #4 - Sep 24th, 2012 at 7:08pm
Print Post  
More...
More...

I notice you are using SoftwareSerial? 

Even if you are not can you please email me a screen shot of your project properties window showing all the vm debug settings so that I can see what you have enabled. Please send to info [at] visualmicro.com

Thanks
  
Back to top
IP Logged
 
Juan
Newbies
*
Offline


Posts: 9
Location: Bilbao
Joined: Sep 20th, 2012
Re: Error debugging
Reply #5 - Sep 25th, 2012 at 7:05am
Print Post  
I have tried to change the breakpoints to the other lines and the result is the same. 

The version of .NET Framework is 4.5, I don't know if it should be other version.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error debugging
Reply #6 - Sep 25th, 2012 at 5:00pm
Print Post  
Hi, the system is compatible with .net3.5,4.0 and 4.5

I have received your emails. When did you install the visual micro debug? 

There has been an updated release since the initial version of debug. I seems like you are missing all the debug sources.

Please run the debug installer from the beta release notes page to see if this fixes the problem

Thanks
  
Back to top
IP Logged
 
Juan
Newbies
*
Offline


Posts: 9
Location: Bilbao
Joined: Sep 20th, 2012
Re: Error debugging
Reply #7 - Sep 26th, 2012 at 8:03am
Print Post  
I installed it on 21 Sept and the version is this: VisualMicroDebugUpgrade2.msi

I am trying to install again, but it doen'st run, the result is the same. What do you want to say with "run the debug installer from the beta release notes page"?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error debugging
Reply #8 - Sep 26th, 2012 at 11:40am
Print Post  
Okay, that is fine you do not need to re-install again. Which version of arduino ide are you using?
  
Back to top
IP Logged
 
Juan
Newbies
*
Offline


Posts: 9
Location: Bilbao
Joined: Sep 20th, 2012
Re: Error debugging
Reply #9 - Sep 26th, 2012 at 11:55am
Print Post  
My version is Arduino 1.0
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error debugging
Reply #10 - Sep 26th, 2012 at 12:42pm
Print Post  
1)

Please zip and email your sketch and also the content of the folders below the sketch. Your visual studio solution (.sln,.suo) files will also be useful. (info [at] visualmicro.com)

2)

Please confirm if you have the ardupilot version of arduino 1.0 installed (relax patch)? If you do then please update to the latest arduino version using from arduino.cc (1.0.1)

Thanks
« Last Edit: Sep 26th, 2012 at 12:43pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Juan
Newbies
*
Offline


Posts: 9
Location: Bilbao
Joined: Sep 20th, 2012
Re: Error debugging
Reply #11 - Sep 26th, 2012 at 12:49pm
Print Post  
Email with sketch sent. I don't use the Ardupilot version and I'm going to download the latest Arduino version.
  
Back to top
 
IP Logged
 
Juan
Newbies
*
Offline


Posts: 9
Location: Bilbao
Joined: Sep 20th, 2012
Re: Error debugging
Reply #12 - Sep 26th, 2012 at 1:03pm
Print Post  
I have downloaded the latest Arduino version and the debug option doesn't run correctly. The same errors. I have also changed in Options->Visualmicro the Arduino path.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error debugging
Reply #13 - Sep 26th, 2012 at 2:18pm
Print Post  
I can't reproduce the debug compile problem you are encountering. Your zip compiles fine for me. I will have to think about what questions I can ask you to find the problem  Undecided

Please email me the files from sub directories below your c:\program files\visual micro\Visual Micro for Arduino

Please also confirm which version of visual micro you have installed from Tools>Options>Visual Micro>Version


I have found some other bugs that are not releated to your problem. The debug works at 115200 unless you change the speed in the properties. There seems to be a bug with the system if you attempt to work at a different speed. I have removed your Serial.begin(9600) code, you could add it back in at Serial.begin(115200) if you want. BUT no need until we fix the compile problem  Cry


Code
Select All
int cont = 0;

void setup()
{
	pinMode(13,OUTPUT);
}

void loop()
{

  /* add main program code here */
	Serial.println(cont);
	digitalWrite(13, HIGH);
//hhnf
	delay(2000);
	digitalWrite(13, LOW);
	delay(1000);
	cont++;
//vbfgbs

} 

« Last Edit: Sep 26th, 2012 at 2:19pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Juan
Newbies
*
Offline


Posts: 9
Location: Bilbao
Joined: Sep 20th, 2012
Re: Error debugging
Reply #14 - Sep 26th, 2012 at 2:32pm
Print Post  
The Visual Micro version is 1.1209.15

Thanks for the time you are spending!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint