• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(374)  |  Call(289)  |  Derive(0)  |  Import(85)
Print a stack trace from its invocation point.

The optional 'f' argument can be used to specify an alternate
stack frame at which to start. The optional 'limit' and 'file'
arguments have the same meaning as for print_exception().

        def print_stack(f=None, limit=None, file=None):
    """Print a stack trace from its invocation point.

    The optional 'f' argument can be used to specify an alternate
    stack frame at which to start. The optional 'limit' and 'file'
    arguments have the same meaning as for print_exception().
    """
    if f is None:
        try:
            raise ZeroDivisionError
        except ZeroDivisionError:
            f = sys.exc_info()[2].tb_frame.f_back
    print_list(extract_stack(f, limit), file)
        


src/p/y/Pydev-HEAD/plugins/org.python.pydev.debug/pysrc/pydevd_tracing.py   Pydev(Download)
    if TracingFunctionHolder._traceback_limit:
        s = StringIO.StringIO()
        s.write('Call Location:\n')
        traceback.print_stack(f=frame, limit=TracingFunctionHolder._traceback_limit, file=s)
        msg = msg + s.getvalue()
 
    return msg

src/p/o/pony-build-HEAD/examples/push-cgi-notifier/feedparser.py   pony-build(Download)
        except Exception, e:
            if _debug:
                import traceback
                traceback.print_stack()
                traceback.print_exc()
                sys.stderr.write('xml parsing failed\n')
            result['bozo'] = 1

src/a/s/assorted-HEAD/python-commons/trunk/src/commons/startup.py   assorted(Download)
def dump_stack(*args):
    """
    Useful for debugging your program if it's spinning into infinite loops.
    Install this signal handler and issue your program a SIGQUIT to dump the
    main thread's stack, so you can see where it is.
    """
    from traceback import print_stack
    from cStringIO import StringIO
    s = StringIO()
    for tid, frame in _current_frames().iteritems():
        print >> s, 'thread', tid
        print_stack(f = frame, file = s)

src/r/o/robocomp-HEAD/Tools/monitorComp/examples/rois.py   robocomp(Download)
					print type(xPos)
					print type(int(xPos))
					print roi.x3D, roi.x3D
					traceback.print_stack()
		# Draw base
		painter.setPen(Qt.blue)
		painter.setBrush(Qt.blue)

src/r/o/robocomp-HEAD/Tools/monitorComp/examples/betaunits.py   robocomp(Download)
					print type(xPos)
					print type(int(xPos))
					print roi.x3D, roi.x3D
					traceback.print_stack()
		# Draw base
		painter.setPen(Qt.blue)
		painter.setBrush(Qt.blue)

src/p/y/python-commons-0.7/src/commons/startup.py   python-commons(Download)
def dump_stack(*args):
    """
    Useful for debugging your program if it's spinning into infinite loops.
    Install this signal handler and issue your program a SIGQUIT to dump the
    main thread's stack, so you can see where it is.
    """
    from traceback import print_stack
    from cStringIO import StringIO
    s = StringIO()
    for tid, frame in _current_frames().iteritems():
        print >> s, 'thread', tid
        print_stack(f = frame, file = s)

src/p/y/python-ldap-2.3.12/Lib/ldap/ldapobject.py   python-ldap(Download)
          repr(args),repr(kwargs)
        ))
        if self._trace_level>=3:
          traceback.print_stack(limit=self._trace_stack_limit,file=self._trace_file)
    try:
      try:
        result = func(*args,**kwargs)

src/p/y/python-ldap-2.3.12/Lib/ldap/functions.py   python-ldap(Download)
        repr(args),repr(kwargs)
      ))
      if ldap._trace_level>=3:
        traceback.print_stack(limit=ldap._trace_stack_limit,file=ldap._trace_file)
  try:
    try:
      result = func(*args,**kwargs)

src/p/y/pypy-HEAD/pypy/rpython/lltypesystem/lltype.py   pypy(Download)
    def _get_traceback(self):
        frame = sys._getframe().f_back.f_back.f_back.f_back
        sio = StringIO.StringIO()
        traceback.print_stack(frame, file=sio)
        return sio.getvalue()
 
    def _free(self):

src/m/y/mywsgiserver-HEAD/lib/python2.6/site-packages/paste/debug/watchthreads.py   mywsgiserver(Download)
        return None
    frame = frames[thread_id]
    out = StringIO()
    traceback.print_stack(frame, file=out)
    return out.getvalue()
 
hide_keys = ['paste.httpserver.thread_pool']

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next