Debug libraries and core files

I am wondering about the Debugger capabilities of the IDE2 when it comes to debugging code within libraries and the cores.

As mentioned in the thread:
Arduino IDE 2.2.1 debug failure - Hardware / GIGA R1 - Arduino Forum

I am now able to do some debugging on the Arduino GIGA using the debugger. It is currently setup with a Seger Mini EDU setup. Where each sketch that I wish to debug has a debug_custom.json file in the sketch folder, which works. Not sure if there are other SWD dongles that work with it as well?

A couple of quick questions. Is there a straightforward way to set breakpoints within libraries or the core files? About the only way I have found to open a source file other than what is contained within the sketch folder is to find something within my sketch that either calls something in the file I want or is called from somewhere within that file and either than step in or step out to the source file I wish to set the breakpoint in...

Does it support setting up breakpoints within an ISR. I know that this is always tricky, but would be interesting to see where the USBHost code fails when I try to have it send back a message to a device. In this case trying to set the LEDs on a keyboard. It looks like the code is not handling the case where the keyboard is not ready and sends back a NAK. On other processors, it will automaically try resending the data several times until it gets an ACK...

Is it best to ask questions here about the IDE2 debugger or within the Hardware section associated with the board that I am trying to debug.

Thanks
Kurt

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.