You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a solution for debugging python code called from C++ via pybind11?
I know that the opposite works, e.g., based on https://nadiah.org/2020/03/01/example-debug-mixed-python-c-in-visual-studio-code/. I also tried to apply the approach described there to the case of C++ code calling python code, but I can't seem to manage to get it to work if I start the C++ debugger first and then attach the python debugger as described under the above link; the python debugger can't connect to the process.
I have been working with windows10->WSL->Ubuntu20.04 using VS code, but basically any solution that works under linux would be fine. (Visual Studio, which seems to support this, is unfortunately not an option for me.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a solution for debugging python code called from C++ via pybind11?
I know that the opposite works, e.g., based on https://nadiah.org/2020/03/01/example-debug-mixed-python-c-in-visual-studio-code/. I also tried to apply the approach described there to the case of C++ code calling python code, but I can't seem to manage to get it to work if I start the C++ debugger first and then attach the python debugger as described under the above link; the python debugger can't connect to the process.
I have been working with windows10->WSL->Ubuntu20.04 using VS code, but basically any solution that works under linux would be fine. (Visual Studio, which seems to support this, is unfortunately not an option for me.)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions