user3541631
user3541631

Reputation: 4008

How can I debug C++ code called from Python on a remote machines using PyCharm?

How can I debug C++ code called from Python on a remote machines?

I'm using PyCharm, but its debugger doesn't seem to allow you to debug mixed code. What alternatives do I have? I know about gdb but I need some usage details.

Upvotes: 0

Views: 898

Answers (1)

zuo
zuo

Reputation: 46

Pycharm ia a python IDE, it cannot be used to debug c++ directly. If you can use other ides, such as VSCode , the link below may help you. https://nadiah.org/2020/03/01/example-debug-mixed-python-c-in-visual-studio-code/.

If using gdb, you can use command:

gdb --args python your_python_script.py

then you can debug as a standalone cpp executable, such as set breakpoints, run, step and so on.

Upvotes: 1

Related Questions