I have written a C++-library with bindings for python. My python code (a jupyer notebook) calling the library makes crashes. The problem lies within the library. I would like to debug this (using lldb, at best from within vs code). So far, I've tried to call the library from a python file test.py, issue lldb python3, place my breakpoints and run test.py. That works and stops on the breakpoints, but lldb crashes whenever I print a variable. This is not the case when running lldb directly on a C++ program that uses the library.
What's the best practice to debug the C++ code if called from python?