VSCode,Python:错误:释放解锁锁

时间:2016-10-28 19:25:55

标签: python visual-studio-code remote-debugging ptvs

我在远程Linux机器上运行python进程并使用MAC进行调试。

远程系统启动共享同一组文件的进程。

有时候单步执行代码,我会点击以下内容:

File "/usr/local/lib/python2.7/site-packages/ptvsd/visualstudio_py_debugger.py", line 1623, in loop
cmd()
File "/usr/local/lib/python2.7/site-packages/ptvsd/visualstudio_py_debugger.py", line 1895, in command_execute_code
thread.run_on_thread(text, cur_frame, eid, frame_kind, repr_kind)
File "/usr/local/lib/python2.7/site-packages/ptvsd/visualstudio_py_debugger.py", line 1223, in run_on_thread
self.schedule_work(lambda : self.run_locally(text, cur_frame, execution_id, frame_kind, repr_kind))
File "/usr/local/lib/python2.7/site-packages/ptvsd/visualstudio_py_debugger.py", line 1215, in schedule_work
self.unblock()
File "/usr/local/lib/python2.7/site-packages/ptvsd/visualstudio_py_debugger.py", line 1211, in unblock
self._block_lock.release()
error: release unlocked lock

是否有使用PTVS / VSCode调试相同远程python进程的方法?

我遵循记录的步骤,添加调用以在特定端口上的远程进程中调用ptvsd服务器,并在我的本地调试器中附加到它。

调试器可以处理同一进程的并行实例吗?

0 个答案:

没有答案