Add supportsSetExpression to tests.

This commit is contained in:
Karthik Nadig 2018-03-19 20:47:42 -07:00 committed by Karthik Nadig
parent 464f7c64c3
commit 313cb04bbb
5 changed files with 8 additions and 3 deletions

View file

@ -79,6 +79,7 @@ class Capabilities(FieldsNamespace):
Field('supportTerminateDebuggee', bool),
Field('supportsDelayedStackTraceLoading', bool),
Field('supportsLoadedSourcesRequest', bool),
Field('supportsSetExpression', bool),
]

View file

@ -312,7 +312,7 @@ class PydevdSocket(object):
def pydevd_notify(self, cmd_id, args):
# TODO: docstring
seq, s = self.make_packet(cmd_id, args)
_, s = self.make_packet(cmd_id, args)
os.write(self.pipe_w, s.encode('utf8'))
def pydevd_request(self, loop, cmd_id, args):
@ -627,6 +627,7 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
supportsExceptionOptions=True,
supportsEvaluateForHovers=True,
supportsValueFormattingOptions=True,
supportsSetExpression=True,
exceptionBreakpointFilters=[
{
'filter': 'raised',
@ -979,7 +980,6 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
if context == 'repl' and is_eval_error == 'True':
# try exec for repl requests
cmd_args = (pyd_tid, pyd_fid, 'LOCAL', expr, '1')
_, _, resp_args = yield self.pydevd_request(
pydevd_comm.CMD_EXEC_EXPRESSION,
msg)
@ -1254,7 +1254,7 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
@pydevd_events.handler(pydevd_comm.CMD_THREAD_RUN)
def on_pydevd_thread_run(self, seq, args):
# TODO: docstring
pyd_tid, reason = args.split('\t')
pyd_tid, _ = args.split('\t')
pyd_tid = pyd_tid.strip()
# Stack trace, active exception, all frames, and variables for

View file

@ -70,6 +70,7 @@ class LifecycleTests(HighlevelTest, unittest.TestCase):
},
],
supportsEvaluateForHovers=True,
supportsSetExpression=True,
)),
self.new_event('initialized'),
self.new_response(req_attach),
@ -133,6 +134,7 @@ class LifecycleTests(HighlevelTest, unittest.TestCase):
},
],
supportsEvaluateForHovers=True,
supportsSetExpression=True,
)),
self.new_event('initialized'),
self.new_response(req_launch),

View file

@ -124,6 +124,7 @@ class LifecycleTests(TestBase, unittest.TestCase):
},
],
supportsEvaluateForHovers=True,
supportsSetExpression=True,
)),
self.new_event('initialized'),
self.new_response(req_attach),

View file

@ -123,6 +123,7 @@ class InitializeTests(LifecycleTest, unittest.TestCase):
},
],
supportsEvaluateForHovers=True,
supportsSetExpression=True,
)),
self.new_event(1, 'initialized'),
])