Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
dbgp 1.1 client eval patch
From 6dae68f6e58c5e71059fec226efea4447e7aaec0 Mon Sep 17 00:00:00 2001
From: abidibo <abidibo@gmail.com>
Date: Wed, 6 Apr 2016 14:38:21 +0200
Subject: [PATCH] vim vdebug client eval patch
---
client.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/client.py b/client.py
index 0f08ae8..c373343 100644
--- a/client.py
+++ b/client.py
@@ -2918,10 +2918,9 @@ class backendCmd(backend):
self.socket.send_response(_template % (tid, bpinfo))
_eval_optlist = [['i','transaction_id', int, 1, -1, None],
- ['l','length', int, 1, 0, None],
['c', 'context_id', int, 0, 0, _validateContextId]]
def do_eval(self, cmdargs, *args):
- (tid, data_length, context_id, data,) = self._getopts(cmdargs, self._eval_optlist, "eval")
+ (tid, context_id, data,) = self._getopts(cmdargs, self._eval_optlist, "eval")
# read data_length from the socket
if self._data_encoding == 'base64':
@@ -2937,7 +2936,7 @@ class backendCmd(backend):
raise CommandError('eval', tid, ERROR_EVAL_FAILED,
'eval of expression failed: '+str(e))
- prop = Property(None, None, value, self._data_encoding,
+ prop = Property(data, data, value, self._data_encoding,
self._show_hidden) # , hiddenContextTypes[context_id])
_template = '<response xmlns="urn:debugger_protocol_v1" command="eval" transaction_id="%s">%s</response>'
--
1.9.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.