Is PIO library debugging possible

I can clearly see the rich debugger functionality demonstrated in IoT application examples, nice functionality. My question… can the unified debugger be used to debug (set breakpoints, inspect variables, etc.) shared libraries. Are there any examples demonstrating this or key actions necessary to attempt this.

My company is evaluating a switch to PlatformIO and a key issue is the ability to develop and debug our libraries that we create for our customers.

Thank you (impressed so far),

If a library is not precompiled into an archive with optimized flags, you can debug it. We recommend to put libraries into lib folder which will be created in your project. In this case, PlatformIO will automatically pick up it and build with valid debug flags.

Please check our tutorials with video/demo => Debugging — PlatformIO latest documentation