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 Local class not hitting breakpoints (Read 1338 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Local class not hitting breakpoints
Apr 1st, 2018 at 6:12am
Print Post  
CommandData uses the CommandDefinitions class to manage multiple devices... At least that's my intention. I have been battling for days with first the compiler and now the debugging engine. 

In my current compile, the single error message is "undefined reference to CommandDefinitions nextCommand();

in CommandDefinitions.h:
      bool nextCommand();

in CommandDefinitions.cpp:
bool CommandDefinitions::nextCommand() {
     if(commandReceived) {
           Serial.print("R");
     }
...
}

What I am seeing is that many methods in CommandDefinitions that appear to be properly declared and defined, but they get the "undefined" message.

And when I comment out those methods that won't compile, the remaining ones don't echo output from debug breakpoints... or even stop at a breakpoint.

The compile output is in the attached Zip as "output.txt".

And what version of C++ are we using here? That may be relevant.
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Local class not hitting breakpoints
Reply #1 - Apr 1st, 2018 at 1:06pm
Print Post  
Hi,

I can't really help with code problems. They are best asked on stackoverflow.

You are using whatever c++ tool chain you have installed for whatever hardware you are using.

Usually based on GCC. Again best place to ask is the forum for whatever hardware you are using. The code issues will be the same in the arduino ide.

As for the debugger. If you place a breakpoint in the IF statement then the break will only happen if the condition is true

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint