mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Enable modules support
This commit is contained in:
parent
314211d17c
commit
b65884c7b4
5 changed files with 7 additions and 1 deletions
|
|
@ -80,6 +80,7 @@ class Capabilities(FieldsNamespace):
|
|||
Field('supportsDelayedStackTraceLoading', bool),
|
||||
Field('supportsLoadedSourcesRequest', bool),
|
||||
Field('supportsSetExpression', bool),
|
||||
Field('supportsModulesRequest', bool),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -678,6 +678,7 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
|
|||
supportsEvaluateForHovers=True,
|
||||
supportsValueFormattingOptions=True,
|
||||
supportsSetExpression=True,
|
||||
supportsModulesRequest=True,
|
||||
exceptionBreakpointFilters=[
|
||||
{
|
||||
'filter': 'raised',
|
||||
|
|
@ -1081,7 +1082,7 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
|
|||
cmd_args = (pyd_tid, pyd_fid, 'LOCAL', expr, '1')
|
||||
msg = '\t'.join(str(s) for s in cmd_args)
|
||||
with (yield self.using_format(fmt)):
|
||||
_, _, _ = yield self.pydevd_request(
|
||||
yield self.pydevd_request(
|
||||
pydevd_comm.CMD_EXEC_EXPRESSION,
|
||||
msg)
|
||||
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ class LifecycleTests(HighlevelTest, unittest.TestCase):
|
|||
],
|
||||
supportsEvaluateForHovers=True,
|
||||
supportsSetExpression=True,
|
||||
supportsModulesRequest=True,
|
||||
)),
|
||||
self.new_event('initialized'),
|
||||
self.new_response(req_attach),
|
||||
|
|
@ -135,6 +136,7 @@ class LifecycleTests(HighlevelTest, unittest.TestCase):
|
|||
],
|
||||
supportsEvaluateForHovers=True,
|
||||
supportsSetExpression=True,
|
||||
supportsModulesRequest=True,
|
||||
)),
|
||||
self.new_event('initialized'),
|
||||
self.new_response(req_launch),
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ class LifecycleTests(TestBase, unittest.TestCase):
|
|||
],
|
||||
supportsEvaluateForHovers=True,
|
||||
supportsSetExpression=True,
|
||||
supportsModulesRequest=True,
|
||||
)),
|
||||
self.new_event('initialized'),
|
||||
self.new_response(req_attach),
|
||||
|
|
|
|||
|
|
@ -124,6 +124,7 @@ class InitializeTests(LifecycleTest, unittest.TestCase):
|
|||
],
|
||||
supportsEvaluateForHovers=True,
|
||||
supportsSetExpression=True,
|
||||
supportsModulesRequest=True,
|
||||
)),
|
||||
self.new_event(1, 'initialized'),
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue