-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.tcl
More file actions
29 lines (23 loc) · 826 Bytes
/
debug.tcl
File metadata and controls
29 lines (23 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
global gDebug_ShowFunctionLine gDebug_ShowLineByLine gDebug_NewVariable gDebug_ShowFunctionDef gDebug_PrintLocalVar
global gDebug_Profil gDebug_PrintCache
set gDebug_ShowFunctionLine 1
set gDebug_ShowLineByLine 0
set gDebug_NewVariable 0
set gDebug_ShowFunctionDef 0
set gDebug_PrintLocalVar 0
set gDebug_Profil 1
set gDebug_PrintCache 1
proc PrintLocalVar {FunctionName} {
global gDebug_PrintLocalVar xbashlocalvar
if {$gDebug_PrintLocalVar == 0} return
puts "LOCALVAR $FunctionName : $xbashlocalvar"
}
proc PrintgLine {} {
global gDebug_ShowLineByLine gline
if {$gDebug_ShowLineByLine == 0} return
puts "$gline"
}