Changeset 5725


Ignore:
Timestamp:
Jun 22, 2015, 2:27:24 AM (9 years ago)
Author:
ldelgass
Message:

Add debug tracing methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/visviewer.tcl

    r5659 r5725  
    4444    #private variable _idleTimeout 0;       # No timeout
    4545
     46    protected variable _debug 0
    4647    protected variable _serverType "???";# Type of server.
    4748    protected variable _sid ""      ;   # socket connection to server
     
    8586    protected method ColorsToColormap { colors }
    8687    protected method Connect { servers }
     88    protected method DebugOff {} {
     89        set _debug 0
     90    }
     91    protected method DebugOn {} {
     92        set _debug 1
     93    }
     94    protected method DebugTrace { args } {
     95        if { $_debug } {
     96            puts stderr "[info level -1]: $args"
     97        }
     98    }
    8799    protected method DisableWaitDialog {}
    88100    protected method Disconnect {}
Note: See TracChangeset for help on using the changeset viewer.