VS Arduino
>> >> How to debug shared libraries
https://www.visualmicro.com/forums/YaBB.pl?num=1520314147

Message started by Ali on Mar 6th, 2018 at 5:29am

Title: How to debug shared libraries
Post by Ali on Mar 6th, 2018 at 5:29am
Hi Tim

I feel defeated! :'( I have tried debugging but had zero luck with breaking points in shared project libraries. The breakpoint in .ino works fine but the one in shared project does not.

I used forum search and searched for "debug" and read everything that was available. (17 items)

I went through all documents regarding the debugging again.

I checked the breakpoint window and it is all good.
I checked Compile.vmps.xml and it has the breakpoints correctly. At least from the way it looks.
I closed and open the solution to make sure it is saved with breakpoints. It was all good too.

I have tried with 2 projects (inĀ  case something is wrong with the project), this is a simpler version and straight to the point. I hate to be that guy who always ask questions but my brain is not helping any more.


I am still going to work on it for the rest of the day till you become available and will definitely let you know if I understood what I am doing wrong not to waste your time.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Test_Debug_in_Shared_Library_Project.zip ( 503 KB | 2 Downloads )

Title: Re: How to debug shared libraries
Post by Visual Micro on Mar 6th, 2018 at 12:16pm
Split to new thread for clarity

Shared libs are quite new. I will re-test over the next week or so before I comment on this question.

Thanks for the info.

Title: Re: How to debug shared libraries
Post by Ali on Mar 7th, 2018 at 2:18am
Thank you Tim

With 99.9999999999% confidence I can say that the debugging feature as of now does not work on shared library.

I have attached a file with a project containing:
SharedLibrary
SharedProject
And also AddedFilesToSketch which are .h and .cpp added to sketch folder.

The breakpoints works in every place except the one placed in the SharedLibrary.

I think the issue is that shared library is treated as normal Arduino library and that is why it won't even bother about debugging since it thinks it is normal library. I could be wrong but I think that should be the issue. I also guess if the simplified including is tied with no debugging, it may take you a longer time to fix the issue. But if they work independently then I think the debugging feature should be easily enabled for shared libraries. I realized in the past you had shared library and normal library, I guess considering the debugging, it may be a good idea to keep them as 2 separate things. Or treat anything in Library path as normal library and anything out of it as Shared Library (if it looks like a library of course). Anyways you are the captain, I just hope I have provided enough insight.

Thank you again for all the hard work.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=breakpoint.zip ( 772 KB | 2 Downloads )

Title: Re: How to debug shared libraries
Post by Ali on Mar 23rd, 2018 at 12:48pm
Please let me know if debugging will be supported in shared libraries. If yes, when are you expecting that to happen?

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.