CLion: Debug C++ subprocess spawned by python

寵の児 提交于 2020-05-13 08:57:46

问题


Is there any way in CLion to debug a C++ program that is run from a Python script with subprocess.Popen?

I can set breakpoints and debug the Python program, and I can set breakpoints and debug the C++ program if I run it directly, but I can't get my C++ breakpoints to fire when the program is started from Popen.

I tried setting "Python Debugger->Attach to subprocess automatically" while debugging but it didn't seem to have any effect.

来源:https://stackoverflow.com/questions/53674471/clion-debug-c-subprocess-spawned-by-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!