#pydbgp
Explore tagged Tumblr posts
Text
vdebug + python
$ curl 'http://downloads.activestate.com/Komodo/releases/archive/8.x/8.5.4/remotedebugging/Komodo-PythonRemoteDebugging-8.5.4-86985-linux-x86_64.tar.gz?_ga=2.213132828.928515719.1533909623-2080295309.1533909623' -o Komodo-PythonRemoteDebugging-8.5.4-86985-linux-x86_64.tar.gz $ tar xf Komodo-PythonRemoteDebugging-8.5.4-86985-linux-x86_64.tar.gz $ cd Komodo-PythonRemoteDebugging-8.5.4-86985-linux-x86_64 $ cp -r python3lib/dbgp . $ curl -L https://gist.githubusercontent.com/x-yuri/1ec2e2a67b5c2aae994668b7bde6fd4d/raw/854bcdd1ce2c3de856b89c4024a7b53c30fd7c67/client.py.patch -o dbgp/client.py.patch $ patch dbgp/client.py < dbgp/client.py.patch // the following patch allows to debug scripts that behave differently // depending on basename($0) (symlink) // e.g. ansible-playbook // or else it would think it's run as ansible $ curl -L https://gist.githubusercontent.com/x-yuri/1ec2e2a67b5c2aae994668b7bde6fd4d/raw/854bcdd1ce2c3de856b89c4024a7b53c30fd7c67/pydbgp.patch -o pydbgp.patch $ patch pydbgp < pydbgp.patch // <F5> in vim $ path/to/pypdbg -d localhost:9000 /path/to/script # 9001 in my case
0 notes