mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +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
|
@ -119,7 +119,7 @@ class SocketIO:
|
|||
pass
|
||||
|
||||
def localcall(self, request):
|
||||
##self.debug("localcall:", request)
|
||||
self.debug("localcall:", request)
|
||||
try:
|
||||
how, (oid, methodname, args, kwargs) = request
|
||||
except TypeError:
|
||||
|
@ -165,6 +165,7 @@ class SocketIO:
|
|||
return ("EXCEPTION", (mod, name, args, tb))
|
||||
|
||||
def remotecall(self, oid, methodname, args, kwargs):
|
||||
self.debug("remotecall:", oid, methodname, args, kwargs)
|
||||
seq = self.asynccall(oid, methodname, args, kwargs)
|
||||
return self.asyncreturn(seq)
|
||||
|
||||
|
@ -197,10 +198,12 @@ class SocketIO:
|
|||
pass
|
||||
else:
|
||||
raise getattr(__import__(mod), name)(*args)
|
||||
else:
|
||||
if mod:
|
||||
name = mod + "." + name
|
||||
raise name, args
|
||||
# XXX KBK 15Jun02 mod is False here, also want to raise remaining exceptions
|
||||
# else:
|
||||
# if mod:
|
||||
# name = mod + "." + name
|
||||
# raise name, args
|
||||
raise name, args
|
||||
if how == "ERROR":
|
||||
raise RuntimeError, what
|
||||
raise SystemError, (how, what)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue