can't debug when using cmd readline and command completion
I'm trying to debug a program based on the Python cmd module, which uses readline for command completion. When I run it in the Pycharm debugger, cmd acts as if raw input is disabled, and takes input only after a <CR> is pressed. So the command completion code is not called, defeating my purpose. This happens even if I run remote debug on my program. Any ideas how to make this work?
请先登录再写评论。
Remote debug should work as long as you launch your program from a terminal and not from PyCharm.
pydevd.settrace(debug_host, port=8888, suspend=False,
stdoutToServer=False, stderrToServer=False)
Whereas before my std*ToServer values were True. Maybe output handling also affects input handling.
Regards,
George