summaryrefslogtreecommitdiff
path: root/Lib/idlelib/rpc.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-01-25 21:33:40 +0000
committerKurt B. Kaiser <kbk@shore.net>2003-01-25 21:33:40 +0000
commitda004130d79baa8433095128366733e2881b3c7f (patch)
tree6a2155b43f8f5601eed5a915e48445d13b067c39 /Lib/idlelib/rpc.py
parentab3cf81e083b8f108105a50b019f13ff9afcc61a (diff)
downloadcpython-da004130d79baa8433095128366733e2881b3c7f.tar.gz
M PyShell.py
M RemoteDebugger.py M rpc.py Fix the incorrect shell exception tracebacks generated when running under debugger control: 1. Use rpc.SocketIO.asynccall() instead of remotecall() to handle the IdbProxy.run() command. 2. Add a 'shell' attribute to RemoteDebugger.IdbProxy to allow setting of ModifiedInterpreter's active_seq attribute from RemoteDebugger code. 3. Cleanup PyShell.ModifiedInterpreter.runcode() and remove ambiguity regarding use of begin/endexecuting(). 4. In runcode() and cleanup_traceback() use 'console' instead of 'file' to denote the entity to which the exception traceback is printed. 5. Enhance cleanup_traceback() so if the traceback is pruned entirely away (the error is in IDLE internals) it will be displayed in its entirety instead. 6. ModifiedInterpreter.runcode() now prints ERROR RPC returns to both console and __stderr__. 7. Make a small tweak to the rpc.py debug messages.
Diffstat (limited to 'Lib/idlelib/rpc.py')
-rw-r--r--Lib/idlelib/rpc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py
index 40b16971e0..c7644e1681 100644
--- a/Lib/idlelib/rpc.py
+++ b/Lib/idlelib/rpc.py
@@ -361,9 +361,10 @@ class SocketIO:
seq, resq = message
self.debug("pollresponse:%d:myseq:%s" % (seq, myseq))
if resq[0] == "call":
- self.debug("pollresponse:%d:call_localcall" % seq)
+ self.debug("pollresponse:%d:localcall:call:" % seq)
response = self.localcall(resq)
- self.debug("pollresponse:%d:response:%s" % (seq, response))
+ self.debug("pollresponse:%d:localcall:response:%s"
+ % (seq, response))
self.putmessage((seq, response))
continue
elif seq == myseq: