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 Use debug in library function? (Read 2852 times)
Doug Basberg
Junior Member
**
Offline


Posts: 20
Location: Michigan
Joined: Feb 28th, 2013
Use debug in library function?
Jul 13th, 2013 at 7:01pm
Print Post  
I have a question about breakpoints/traces.  I tried to investigate a library function in Arduino 1.5.2 by placing a trace point.  It did not work.  

Can we have trace breakpoints in a library function?  

I was considering renaming the SHT function (SHT11 sensor) and placing it in the project directory.  Then I would expect break/trace points to work.  Any comment? 

I have tried having a function in the project directory override a library of the same name and that does not work.  The compiler works on both copies and reports duplicate definitions.  Therefore, thinking rename is necessary.  In the beginning, I thought VM kept a directory where files with breakpoints were handled and that would work with library files as well.

In Atmel 6.1, I noticed that warnings are counted as errors.  So, I had 3 errors and 12 warnings and it was shown as 15 errors.  Is that just me?

Thanks, Doug
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Use debug in library function?
Reply #1 - Jul 13th, 2013 at 7:56pm
Print Post  
Thanks for the post others will find it useful.

We haven't had time to add debug to libs but hope to do this soon.

You are right to copy the lib code to the local sketch but should also move the old lib so it doesn't cause confusion. After moving the lib(s) click tools>arduino>reload toolchain or restart the ide.

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