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 Can Libraries be debugged? (Read 2670 times)
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Can Libraries be debugged?
Jan 26th, 2013 at 4:23pm
Print Post  
I'm pretty new to both Arduino, VS and VM.  I'm using the Bounce Library in a bit of code to look at two switches, and if either is pressed, light the LED.  It appears the Library is not being called as if I set a breakpoint inside this if-statement:

if(MyDeBounceA.update() || MyDeBounceB.update()) {

...it never breaks and pressing the switches gets no LED.

From all I can tell, the ckt is wired ok - it just seems like I'm not getting into the debounce library.  Also, other than the #include bounce.h I don't see any evidence in the Solution Window that the library has been included...

Any tips on how to verify the library is getting called would be helpful - hope this isn't outside the VM subjects!

=Alan R.
« Last Edit: Jan 26th, 2013 at 5:27pm by Harrzack »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can Libraries be debugged?
Reply #1 - Jan 26th, 2013 at 6:22pm
Print Post  
Hi, No libraries are not supported by the debugger yet but if they have public variables then you can report them from a sketch code breakpoint.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint