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 Debugging : Breakpoints in Libraries (Read 275 times)
K S
Junior Member
**
Offline


Posts: 10
Joined: Dec 14th, 2015
Debugging : Breakpoints in Libraries
Jan 17th, 2025 at 1:42pm
Print Post  
I have added several libraries by cloning them as shared projects in the SLN.

I am trying to set a breakpoint in a cloned library.  The breakpoint does not seem to be working.

This applies to .h/.cpp libraries (ex: Arduino_ConnectionHandler).
This applies also to .h-only libraries (ex: MKRWAN)

Breakpoints in the .INO work as expected.

Are there steps necessary to us the VM debugger on libraries?
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
K S
Junior Member
**
Offline


Posts: 10
Joined: Dec 14th, 2015
Re: Debugging : Breakpoints in Libraries
Reply #1 - Feb 1st, 2025 at 7:22pm
Print Post  
Any Ideas?
How does one debug the code in included libraries?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2717
Joined: Feb 13th, 2019
Re: Debugging : Breakpoints in Libraries
Reply #2 - Feb 3rd, 2025 at 11:19am
Print Post  
Apologies for the delayed reply.

The Library Debugging is only available when using the Hardware Debuggers, and this board has its' SWDIO/SWCLK pins available on the pads on the back (shown on Page 3 of the hardware spec).  Then a debug probe can be used as shown in the SAMD Debugging Guide.

The Serial Debugger is limited in this area due to the Breakpoints being injected into the Library code during the build process, which is problematic in many scenarios.

Let us know if you need any help getting setup with the Hardware Debugging, or if you have (or have made from another board) a debug probe not in the default list.


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