Skip to content

Instantly share code, notes, and snippets.

@bisraelsen
Last active May 20, 2020 20:31
Show Gist options
  • Save bisraelsen/4612b15160a496f2016677f6a1b8f206 to your computer and use it in GitHub Desktop.
Save bisraelsen/4612b15160a496f2016677f6a1b8f206 to your computer and use it in GitHub Desktop.
patch for Komodo-PythonRemoteDebugging to work with vim-debug
3436,3437c3436
< _eval_optlist = [['i','transaction_id', int, 1, -1, None],
< ['l','length', int, 1, 0, None]]
---
> _eval_optlist = [['i','transaction_id', int, 1, -1, None]]
3439c3438
< (tid, data_length, data,) = self._getopts(cmdargs, self._eval_optlist, "eval")
---
> (tid, data,) = self._getopts(cmdargs, self._eval_optlist, "eval")
3455,3456c3454,3455
< prop = Property(None, None, value, self._data_encoding,
< self._show_hidden, hiddenContextTypes[context_id])
---
> prop = Property(data, data, value, self._data_encoding,
> self._show_hidden, hiddenContextTypes[0])
@bisraelsen
Copy link
Author

bisraelsen commented May 1, 2020

Here's how to install it:

$ curl 'http://downloads.activestate.com/Komodo/releases/12.0.1/remotedebugging/Komodo-PythonRemoteDebugging-12.0.1-91869-linux-x86_64.tar.gz' -o Komodo-PythonRemoteDebugging-12.0.1-91869-linux-x86_64.tar.gz
$ tar xf Komodo-PythonRemoteDebugging-12.0.1-91869-linux-x86_64.tar.gz
$ cd Komodo-PythonRemoteDebugging-12.0.1-91869-linux-x86_64
$ cp -r python3lib/dbgp .

// the following patch fixes expression evaluation
$ curl -L https://gist.githubusercontent.com/bisraelsen/4612b15160a496f2016677f6a1b8f206/raw/2d20f47d208a2bd71c98dfd7f0477054c037605a/client-12.0.1.patch -o dbgp/client.py.patch
$ patch dbgp/client.py < dbgp/client.py.patch

and to run:

// <F5> in vim
$ path/to/pydbgp -d localhost:9000 /path/to/script

This is basically an update to this patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment