Debugging a Dynamic C library

Hi I’m new to dynamic C and I am currently working on a legacy product where changes need to be made. Is there a way to switch debugging on in a custom library file/module?
I vaguely remember seeing a #define DEBUG switch but that doesn’t seem to work in that I can’t insert a breakpoint.

Many thanks


Just in case anyone else needs it, I figured it out. Add the following at the top of the lib file.

#define DEBUG_RST 1

most of the Rabbit libraries have a debug switch which you can trigger by defining the appropriate macro before the #use statement for that library (or libraries included by a higher level library).

For example you can define UDP_DEBUG to enable debugging of functions in the UDP lib but also DCRTCP_DEBUG to enable debug in all the TCP/IP stack functions.