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?