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 Breakpoints in a header file(s) (Read 3698 times)
Michael Brian
Newbies
*
Offline


Posts: 4
Location: Windsor Ontario, Canada
Joined: Dec 21st, 2012
Breakpoints in a header file(s)
Dec 30th, 2012 at 1:25am
Print Post  
Does the debugger react to breakpoints in a header file?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoints in a header file(s)
Reply #1 - Dec 30th, 2012 at 3:52pm
Print Post  
Hi, no not at the moment. I can't stop vs from allowing you to add a breakpoint to a .h or a .txt or any other type of file, but the breakpoint will not be honored. 

If you have some code that you think it should be able to execute in a header file then I will be happy to add support but I didn't think programs worked that way?? As you can see i'm not a C++ expert.

The rule of thumb is that you can put a breakpoint anywhere you could normally put a Serial.println() statement. 

This does not mean you have to add the arduino references to make serial work in a cpp because the debugger does this automatically in the background. It just means that you "could" put a serial statement at the location if you wanted to.

FYI: The debugger uses serial to send data to the pc. It adds the serial to the code at compile time. This makes it easier to use but different from a hardware debugger. It also means that all breakpoints must be on the name of a method or inside a methods code block.
« Last Edit: Dec 30th, 2012 at 3:57pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint