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 break points before setup()? (Read 2811 times)
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
break points before setup()?
Mar 1st, 2015 at 1:13am
Print Post  
I've decided to try once more to get the debugger working. My program is running on a Mega. I've hooked a second arduino up to Serial1 as a serial - USB converter. I've confirmed that this is working with a simple sketch.

My problem is that my program never seems to get to setup(). It's getting stuck either in a #include or when I instantiate some object. Whenever I put a breakpoint before setup(), I get:

Code
Select All
LimnoTerra.ino:At global scope
LimnoTerra.ino:86:31: error: 'MicroDebug' does not name a type 



Is there any good way to figure out where my code is getting stuck before it gets to setup()?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: break points before setup()?
Reply #1 - Mar 1st, 2015 at 10:48am
Print Post  
Hi,

The debugger is a serial debugger, you can only place breakpoints where you might normally place serial.print statements.

Thanks
  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: break points before setup()?
Reply #2 - Mar 1st, 2015 at 3:06pm
Print Post  
ok, thought so. Found the problem. I was instantiating the SdFat object with the wrong Chip select pin.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint