Message165324
Debugger.py has a method "in_rpc_code" which ultimately prevents stepping though code from rpc.py. (Presently an external file named "rpc.py" can not be debugged using IDLE.)
Adding "run.py" to the check would prevent run.py from being stepped, but it applies to *any* "run.py" in the filename string:
elif frame.f_code.co_filename.count('run.py'):
return True
Or, you could check the name:
elif frame.f_globals.get('__name__','') == 'idlelib.run':
return True
Any additional logic for "in_rpc_code" can slow down code performance when debugging.
Another possible approach is to move the _RPCFile into rpc.py add additional methods to RPCHandler, like "get_remote_stdout_proxy". |
|
Date |
User |
Action |
Args |
2012-07-12 17:18:22 | roger.serwy | set | recipients:
+ roger.serwy, loewis, terry.reedy, serhiy.storchaka |
2012-07-12 17:18:22 | roger.serwy | set | messageid: <1342113502.72.0.820398778953.issue15335@psf.upfronthosting.co.za> |
2012-07-12 17:18:22 | roger.serwy | link | issue15335 messages |
2012-07-12 17:18:22 | roger.serwy | create | |
|