DebugClients/Python3/DebugBase.py

changeset 4293
125a75cfd249
parent 4063
b7269498aa95
child 4309
cc9c62f55413
equal deleted inserted replaced
4292:9dfee1559826 4293:125a75cfd249
558 if ffunc == '?': 558 if ffunc == '?':
559 ffunc = '' 559 ffunc = ''
560 560
561 if ffunc and not ffunc.startswith("<"): 561 if ffunc and not ffunc.startswith("<"):
562 argInfo = inspect.getargvalues(fr) 562 argInfo = inspect.getargvalues(fr)
563 fargs = inspect.formatargvalues( 563 try:
564 argInfo.args, argInfo.varargs, 564 fargs = inspect.formatargvalues(
565 argInfo.keywords, argInfo.locals) 565 argInfo.args, argInfo.varargs,
566 argInfo.keywords, argInfo.locals)
567 except Exception:
568 fargs = ""
566 else: 569 else:
567 fargs = "" 570 fargs = ""
568 571
569 stack.append([fname, fline, ffunc, fargs]) 572 stack.append([fname, fline, ffunc, fargs])
570 573
617 if ffunc == '?': 620 if ffunc == '?':
618 ffunc = '' 621 ffunc = ''
619 622
620 if ffunc and not ffunc.startswith("<"): 623 if ffunc and not ffunc.startswith("<"):
621 argInfo = inspect.getargvalues(fr) 624 argInfo = inspect.getargvalues(fr)
622 fargs = inspect.formatargvalues( 625 try:
623 argInfo.args, argInfo.varargs, 626 fargs = inspect.formatargvalues(
624 argInfo.keywords, argInfo.locals) 627 argInfo.args, argInfo.varargs,
628 argInfo.keywords, argInfo.locals)
629 except Exception:
630 fargs = ""
625 else: 631 else:
626 fargs = "" 632 fargs = ""
627 633
628 stack.append([fname, fline, ffunc, fargs]) 634 stack.append([fname, fline, ffunc, fargs])
629 635
721 if ffunc == '?': 727 if ffunc == '?':
722 ffunc = '' 728 ffunc = ''
723 729
724 if ffunc and not ffunc.startswith("<"): 730 if ffunc and not ffunc.startswith("<"):
725 argInfo = inspect.getargvalues(fr) 731 argInfo = inspect.getargvalues(fr)
726 fargs = inspect.formatargvalues( 732 try:
727 argInfo.args, argInfo.varargs, 733 fargs = inspect.formatargvalues(
728 argInfo.keywords, argInfo.locals) 734 argInfo.args, argInfo.varargs,
735 argInfo.keywords, argInfo.locals)
736 except Exception:
737 fargs = ""
729 else: 738 else:
730 fargs = "" 739 fargs = ""
731 740
732 exclist.append([filename, linenr, ffunc, fargs]) 741 exclist.append([filename, linenr, ffunc, fargs])
733 742

eric ide

mercurial