mirror of
https://github.com/python/cpython.git
synced 2025-11-07 17:12:03 +00:00
Polish RemoteDebugger code.
Use a repr() on the subprocess side when fetching dict values for stack. The various dict entities are not needed by the debugger GUI, only their representation.
This commit is contained in:
parent
0444302710
commit
0e3a57731b
6 changed files with 69 additions and 46 deletions
|
|
@ -232,7 +232,7 @@ def __init__(self, master, title, dict=None):
|
|||
|
||||
dict = -1
|
||||
|
||||
def load_dict(self, dict, force=0):
|
||||
def load_dict(self, dict, force=0, rpc_client=None):
|
||||
if dict is self.dict and not force:
|
||||
return
|
||||
subframe = self.subframe
|
||||
|
|
@ -250,6 +250,10 @@ def load_dict(self, dict, force=0):
|
|||
for name in names:
|
||||
value = dict[name]
|
||||
svalue = self.repr.repr(value) # repr(value)
|
||||
# Strip extra quotes caused by calling repr on the (already)
|
||||
# repr'd value sent across the RPC interface:
|
||||
if rpc_client:
|
||||
svalue = svalue[1:-1]
|
||||
l = Label(subframe, text=name)
|
||||
l.grid(row=row, column=0, sticky="nw")
|
||||
## l = Label(subframe, text=svalue, justify="l", wraplength=300)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue