def dump_tracing_state(self, context):
        """ A debug tool to dump all threads tracing state 
        """
        _logger.x_debug("Dumping all threads Tracing state: (%s)" % context)
        _logger.x_debug("    self.tracing_enabled=%s" % self.tracing_enabled)
        _logger.x_debug("    self.execution_started=%s" % self.execution_started)
        _logger.x_debug("    self.status=%s" % self.status)
        _logger.x_debug("    self.frame_beginning=%s" % self.frame_beginning)
        _logger.x_debug("    self.debugger_thread_ident=%s" % self.debugger_thread_ident)
        if False:
            for thr in threading.enumerate():
                is_current_thread = thr.ident == threading.current_thread().ident
                _logger.x_debug("    Thread: %s, %s %s" % (thr.name, thr.ident, "<= Current*" if is_current_thread else ''))
                a_frame = sys._current_frames()[thr.ident]
                while a_frame:
                    flags = []
                    if a_frame == self.frame_beginning:
                        flags.append("beginning")
                    if a_frame == inspect.currentframe():
                        flags.append("current")
                    if flags:
                        flags_str = "**"+",".join(flags)
                    else:
                        flags_str = ""
                    _logger.x_debug("        => %s, %s:%s(%s) | %s %s" % (a_frame, 
                                                                          a_frame.f_code.co_filename, 
                                                                          a_frame.f_lineno,
                                                                          a_frame.f_code.co_name, 
                                                                          a_frame.f_trace,
                                                                          flags_str))
                    a_frame = a_frame.f_back
def dump_tracing_state ( self , context ) : _logger . x_debug ( "Dumping all threads Tracing state: (%s)" % context ) _logger . x_debug ( "    self.tracing_enabled=%s" % self . tracing_enabled ) _logger . x_debug ( "    self.execution_started=%s" % self . execution_started ) _logger . x_debug ( "    self.status=%s" % self . status ) _logger . x_debug ( "    self.frame_beginning=%s" % self . frame_beginning ) _logger . x_debug ( "    self.debugger_thread_ident=%s" % self . debugger_thread_ident ) if False : for thr in threading . enumerate ( ) : is_current_thread = thr . ident == threading . current_thread ( ) . ident _logger . x_debug ( "    Thread: %s, %s %s" % ( thr . name , thr . ident , "<= Current*" if is_current_thread else '' ) ) a_frame = sys . _current_frames ( ) [ thr . ident ] while a_frame : flags = [ ] if a_frame == self . frame_beginning : flags . append ( "beginning" ) if a_frame == inspect . currentframe ( ) : flags . append ( "current" ) if flags : flags_str = "**" + "," . join ( flags ) else : flags_str = "" _logger . x_debug ( "        => %s, %s:%s(%s) | %s %s" % ( a_frame , a_frame . f_code . co_filename , a_frame . f_lineno , a_frame . f_code . co_name , a_frame . f_trace , flags_str ) ) a_frame = a_frame . f_back
A debug tool to dump all threads tracing state