using winpdb to debug remote scripts
I'm trying to debug a python script in a remote machine using winpdb.
The thing is that I want to run rpdb开发者_高级运维2 (the console version of winpdb) to launch the server in my remote machine to run the script.
Then, here at my local machine, I want to launch winpdb as a client to connect to the rpdb2 server to debug locally.
I managed to do the trick when in localhost, like:
server: 'remote' (but running in localhost):
screen rpdb2 -s -d -r script.py
client: 'local' (also in localhost):
winpdb -olocalhost -a script.py
This works fine. Now I just used the same server line in the remote host machine, and changed the client line -o option with the server address. BUT, now in my client, winpdb says it can't find script.py to attach to. Is there anything I should consider first to get it done?
There was a mistake on my side.
In the server I got another incompatible version of winpdb than on the client. Using the same version solves the problem!
精彩评论