DebugClients/Python/DebugBase.py

changeset 4293
125a75cfd249
parent 4080
d4ba5fab5557
child 4309
cc9c62f55413
equal deleted inserted replaced
4292:9dfee1559826 4293:125a75cfd249
549 if ffunc == '?': 549 if ffunc == '?':
550 ffunc = '' 550 ffunc = ''
551 551
552 if ffunc and not ffunc.startswith("<"): 552 if ffunc and not ffunc.startswith("<"):
553 argInfo = inspect.getargvalues(fr) 553 argInfo = inspect.getargvalues(fr)
554 fargs = inspect.formatargvalues(argInfo[0], argInfo[1], 554 try:
555 argInfo[2], argInfo[3]) 555 fargs = inspect.formatargvalues(argInfo[0], argInfo[1],
556 argInfo[2], argInfo[3])
557 except Exception:
558 fargs = ""
556 else: 559 else:
557 fargs = "" 560 fargs = ""
558 561
559 stack.append([fname, fline, ffunc, fargs]) 562 stack.append([fname, fline, ffunc, fargs])
560 563
607 if ffunc == '?': 610 if ffunc == '?':
608 ffunc = '' 611 ffunc = ''
609 612
610 if ffunc and not ffunc.startswith("<"): 613 if ffunc and not ffunc.startswith("<"):
611 argInfo = inspect.getargvalues(fr) 614 argInfo = inspect.getargvalues(fr)
612 fargs = inspect.formatargvalues(argInfo[0], argInfo[1], 615 try:
613 argInfo[2], argInfo[3]) 616 fargs = inspect.formatargvalues(argInfo[0], argInfo[1],
617 argInfo[2], argInfo[3])
618 except Exception:
619 fargs = ""
614 else: 620 else:
615 fargs = "" 621 fargs = ""
616 622
617 stack.append([fname, fline, ffunc, fargs]) 623 stack.append([fname, fline, ffunc, fargs])
618 624
707 if ffunc == '?': 713 if ffunc == '?':
708 ffunc = '' 714 ffunc = ''
709 715
710 if ffunc and not ffunc.startswith("<"): 716 if ffunc and not ffunc.startswith("<"):
711 argInfo = inspect.getargvalues(fr) 717 argInfo = inspect.getargvalues(fr)
712 fargs = inspect.formatargvalues(argInfo[0], argInfo[1], 718 try:
713 argInfo[2], argInfo[3]) 719 fargs = inspect.formatargvalues(argInfo[0], argInfo[1],
720 argInfo[2], argInfo[3])
721 except Exception:
722 fargs = ""
714 else: 723 else:
715 fargs = "" 724 fargs = ""
716 725
717 exclist.append([filename, linenr, ffunc, fargs]) 726 exclist.append([filename, linenr, ffunc, fargs])
718 727

eric ide

mercurial