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 How to debug libraries (Read 3404 times)
Richardw
Junior Member
**
Offline


Posts: 15
Joined: Mar 2nd, 2014
How to debug libraries
Jul 11th, 2014 at 8:03am
Print Post  
Hello,  I've come up with this work around for debugging libraries.
1) Debug in library sources are not supported yet

What I've done is have:
class myclass
{
};
myclass::myclass() {}
void myclass::procedure(){}
void setup(){}
void loop(){}
Then once you have it working you can move to respective .h and .cpp files.
« Last Edit: Jul 11th, 2014 at 12:32pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to debug libraries
Reply #1 - Jul 11th, 2014 at 12:33pm
Print Post  
Hi Richard

I have split your post because it does not relate to requesting a reset of your license key. Thanks for keeping posts clear and it is okay to create new threads for new topics.

I don't understand your post

Visual Micro will debug .h and .cpp files when they are a part of the main sketch (in the sketch folder)

Thanks
  
Back to top
IP Logged
 
Richardw
Junior Member
**
Offline


Posts: 15
Joined: Mar 2nd, 2014
Re: How to debug libraries
Reply #2 - Jul 13th, 2014 at 2:21am
Print Post  
I had asked about this feature a few months ago but only recently was given the response by a admin here: 1) Debug in library sources are not supported yet.
I guess it might had been a feature recently added.  Sorry if caused any confusion.   I'll give it a try within the sketch's folder as well.
  
Back to top
 
IP Logged
 
Richardw
Junior Member
**
Offline


Posts: 15
Joined: Mar 2nd, 2014
Re: How to debug libraries
Reply #3 - Jul 13th, 2014 at 5:38pm
Print Post  
Yes, Putting the .h and .cpp right in the sketch folder I was able to use visualmicro's debug features.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to debug libraries
Reply #4 - Jul 13th, 2014 at 8:55pm
Print Post  
Thanks, that's a good idea thanks. 

It was a bit confusing to see the setup() and loop() methods in the cpp but there is no reason why a library or cpp file would not have them.
« Last Edit: Jul 13th, 2014 at 8:57pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint