DebugClients/Python3/DebugClientBase.py

changeset 4455
ca13a6f6c452
parent 4370
54dbb658f9e6
child 4489
d0d6e4ad31bd
equal deleted inserted replaced
4453:e8bea5026dd0 4455:ca13a6f6c452
16 import time 16 import time
17 import imp 17 import imp
18 import re 18 import re
19 import atexit 19 import atexit
20 import signal 20 import signal
21 import inspect
22 21
23 22
24 import DebugProtocol 23 import DebugProtocol
25 import DebugClientCapabilities 24 import DebugClientCapabilities
26 from DebugBase import setRecursionLimit, printerr # __IGNORE_WARNING__ 25 from DebugBase import setRecursionLimit, printerr # __IGNORE_WARNING__
27 from AsyncFile import AsyncFile, AsyncPendingWrite 26 from AsyncFile import AsyncFile, AsyncPendingWrite
28 from DebugConfig import ConfigVarTypeStrings 27 from DebugConfig import ConfigVarTypeStrings
29 from FlexCompleter import Completer 28 from FlexCompleter import Completer
29 from DebugUtilities import getargvalues, formatargvalues
30 30
31 31
32 DebugClientInstance = None 32 DebugClientInstance = None
33 33
34 ############################################################################### 34 ###############################################################################
1216 1216
1217 if ffunc == '?': 1217 if ffunc == '?':
1218 ffunc = '' 1218 ffunc = ''
1219 1219
1220 if ffunc and not ffunc.startswith("<"): 1220 if ffunc and not ffunc.startswith("<"):
1221 argInfo = inspect.getargvalues(stackFrame) 1221 argInfo = getargvalues(stackFrame)
1222 try: 1222 try:
1223 fargs = inspect.formatargvalues( 1223 fargs = formatargvalues(
1224 argInfo.args, argInfo.varargs, 1224 argInfo.args, argInfo.varargs,
1225 argInfo.keywords, argInfo.locals) 1225 argInfo.keywords, argInfo.locals)
1226 except Exception: 1226 except Exception:
1227 fargs = "" 1227 fargs = ""
1228 else: 1228 else:

eric ide

mercurial