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 separate file aren't being hit? (Read 2298 times)
FrankP
Senior Member
****
Offline


Posts: 251
Joined: Oct 19th, 2011
Breakpoints in separate file aren't being hit?
Sep 28th, 2018 at 9:13pm
Print Post  
Hi,

I have a main .ino file and a separate code file (with a .h extension) where I define a class and some class methods that are called from the main .ino file.  It appears that breakpoints in the main .ino file are hit OK, but ones in the .h file are not, even though the program obviously executes that code.  

Am I missing something?

TIA,

Frank
  
Back to top
 
IP Logged
 
Evgeny Zhekaus
Junior Member
**
Offline


Posts: 38
Joined: Sep 19th, 2018
Re: Breakpoints in separate file aren't being hit?
Reply #1 - Sep 29th, 2018 at 7:10pm
Print Post  
I've got the same problem. Debugger works in main .ino file only.

Btw, putting definitions into .h is bad. Use .cpp instead.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoints in separate file aren't being hit?
Reply #2 - Sep 30th, 2018 at 6:55pm
Print Post  
Yes currently debug code is on;y added to .ino and .cpp code.
  
Back to top
IP Logged
 
Evgeny Zhekaus
Junior Member
**
Offline


Posts: 38
Joined: Sep 19th, 2018
Re: Breakpoints in separate file aren't being hit?
Reply #3 - Sep 30th, 2018 at 9:46pm
Print Post  
But it does not work in .cpp. I make it work only in main .ino file.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoints in separate file aren't being hit?
Reply #4 - Oct 1st, 2018 at 11:58am
Print Post  
It works in project cpp but maybe you are talking about library or core cpp?
  
Back to top
IP Logged
 
Evgeny Zhekaus
Junior Member
**
Offline


Posts: 38
Joined: Sep 19th, 2018
Re: Breakpoints in separate file aren't being hit?
Reply #5 - Oct 2nd, 2018 at 8:59am
Print Post  
Tim@Visual Micro wrote on Oct 1st, 2018 at 11:58am:
maybe you are talking about library or core cpp?


I am talking about cpp in shared code project.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint