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 Debugging works with simple example code, but then not with larger project (Read 5113 times)
105
Newbies
*
Offline


Posts: 3
Joined: Jan 4th, 2016
Debugging works with simple example code, but then not with larger project
Jan 4th, 2016 at 8:08am
Print Post  
Hi there
I'm having an issue with getting the debugging working on my own arduino mega project.  After endlessly going through the serial connection settings i decided to check if it was working on one of the example projects, so i followed the tutorial that used the blink without delay program, and debugging worked first time, however i still can not get it running on my own, larger project. some points

- my project is split up across various .ino files
- i am using serial 2 and serial 3 in the project, but have left the standard serial unused
- my program compiles and uploads from visual studio no problem
- i have an interrupt driven routine for reading serial data

I have attached the zipped project directory any help on getting this working would be much appreciated as it is doing my head in at the moment!

thanks
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging works with simple example code, but then not with larger project
Reply #1 - Jan 4th, 2016 at 12:54pm
Print Post  
Hi,

Which board are you using?

Which Serial port or pins do you want to use for debug?

Thanks
  
Back to top
IP Logged
 
105
Newbies
*
Offline


Posts: 3
Joined: Jan 4th, 2016
Re: Debugging works with simple example code, but then not with larger project
Reply #2 - Jan 4th, 2016 at 9:07pm
Print Post  
Hi there

Arduino mega 2560

Just using the standard USB/serial port for debugging

Like i said i can get it working with an example project, but not my own larger project, so pretty sure its not a hardware issue
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging works with simple example code, but then not with larger project
Reply #3 - Jan 4th, 2016 at 10:46pm
Print Post  
Can your project send and receive Serial using the serial monitor without debug enabled?
  
Back to top
IP Logged
 
105
Newbies
*
Offline


Posts: 3
Joined: Jan 4th, 2016
Re: Debugging works with simple example code, but then not with larger project
Reply #4 - Jan 5th, 2016 at 9:50am
Print Post  
Good Suggestion, hadn't tried that so gave it a go tonight
and the answer is yes, can definitely receive data from the arduino to the computer on serial, compiled and checked on
1. Standard Arduino environment
2. Visual Studio in release mode
3. Visual Studio in debug mode

but unfortunately still no debug results?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging works with simple example code, but then not with larger project
Reply #5 - Jan 5th, 2016 at 11:29am
Print Post  
Please switch off "project setting>throttle enabled"

For the test, confirm your break point is on a simple line of code (not an If, case etc,.)
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint