summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/rpc.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-06-16 03:32:24 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-06-16 03:32:24 (GMT)
commit0e3a57731b4b1ffbfae151cf23289bbd51148163 (patch)
tree5e80bf8895acc85720df9fd8aa99671a96587a80 /Lib/idlelib/rpc.py
parent04443027107e1d53efaf7a41546f65af45748fd7 (diff)
downloadcpython-0e3a57731b4b1ffbfae151cf23289bbd51148163.zip
cpython-0e3a57731b4b1ffbfae151cf23289bbd51148163.tar.gz
cpython-0e3a57731b4b1ffbfae151cf23289bbd51148163.tar.bz2
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.
Diffstat (limited to 'Lib/idlelib/rpc.py')
-rw-r--r--Lib/idlelib/rpc.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py
index a4d2705..35a2678 100644
--- a/Lib/idlelib/rpc.py
+++ b/Lib/idlelib/rpc.py
@@ -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)