Skip to content

Commit aeeda38

Browse files
Merge pull request #355 from vim-vdebug/issues-312-cant-expand-dict-in-watchwindow-python
use double quote around property in property_get
2 parents 744b4bd + a7da015 commit aeeda38

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pythonx/vdebug/dbgp.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,11 @@ def context_names(self):
360360
def property_get(self, name):
361361
"""Get a property.
362362
"""
363-
return self.send_cmd('property_get', '-n %s -d 0' % name,
364-
ContextGetResponse)
363+
return self.send_cmd(
364+
'property_get',
365+
'-n "%s" -d 0' % name.replace("\\", "\\\\").replace("\"", "\\\""),
366+
ContextGetResponse
367+
)
365368

366369
def detach(self):
367370
"""Tell the debugger to detach itself from this

0 commit comments

Comments
 (0)