问题描述
之前的VS 2013 Ultimate + Pycharm 2017 Community联合调试调用dll没有问题。
但是最近在新设备上使用VS 2017 Enterprise + Pycharm 2018 Pro联合调试dll时报了bug:
PYDEV DEBUGGER WARNING:
sys.settrace() should not be used when the debugger is being used.
This may cause the debugger to stop working correctly.
If this is needed, please check:
http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html
to see how to restore the debug tracing back correctly.
Call Location:
File "D:\JetBrains\PyCharm 2018.3.3\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 382, in _on_run
r = self.sock.recv(1024)
PYDEV DEBUGGER WARNING:
sys.settrace() should not be used when the debugger is being used.
This may cause the debugger to stop working correctly.
If this is needed, please check:
http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html