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 not working for breakpoints in cpp file (Read 598 times)
MarkR
Newbies
*
Offline


Posts: 2
Joined: Jul 1st, 2024
Debugging not working for breakpoints in cpp file
Jul 1st, 2024 at 1:23pm
Print Post  
Hi,
I'm relatively new to VisualMicro, but so far it has been a great experience and is enabling me to tackle more complex projects  Smiley

I'm just starting out with the debugging and I'm having some issues.  I have a .ino file which #includes a number of classes that have had their .ccp and .h files added to the project (they are not libraries).  If I add a breakpoint to a line in the .ino file everything seems to work fine, but if I add a breakpoint to a line of a called member function in the .cpp class definition it does nothing.

I will email build file.

Any thoughts?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: Debugging not working for breakpoints in cpp file
Reply #1 - Jul 1st, 2024 at 1:31pm
Print Post  
Thanks for the report, and the log by email.

Can you confirm which CPP file you are setting a breakpoint within to help us review the logs?
  
Back to top
IP Logged
 
MarkR
Newbies
*
Offline


Posts: 2
Joined: Jul 1st, 2024
Re: Debugging not working for breakpoints in cpp file
Reply #2 - Jul 1st, 2024 at 1:34pm
Print Post  
The breakpoint is in TelltaleLight.cpp
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: Debugging not working for breakpoints in cpp file
Reply #3 - Jul 1st, 2024 at 1:38pm
Print Post  
Thanks for confirming, could you also email over the Telltalelight.cpp file from the Build Folder so we can review the breakpoint code addition?

Tip: vMicro adds the code for the breakpoint on the end of the line the break/tracepoint is set on, so if you set it on a line with a return statement, it will never be hit.
« Last Edit: Jul 1st, 2024 at 2:37pm by Simon@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint