cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
441
Views
0
Helpful
1
Replies

ACE TCL script debug.

szilmatyas
Level 1
Level 1

Hi all,

I would like to write custom TCL script in ACE. I would like to write some info for debugging to the console with "puts $VAR ", but nothing is shown.

What could be the problem ? I have debug hm all on.

Regards,

szicsu

1 Reply 1

Gilles Dufour
Cisco Employee
Cisco Employee

Look into an existing script and reuse the same debug function

proc ace_debug { msg } {

global debug ip port EXIT_MSG

set EXIT_MSG $msg

if { [ info exists ip ] && [ info exists port ] } {

set EXIT_MSG "[ info script ]:$ip:$port: $EXIT_MSG "

}

if { [ info exists debug ] && $debug } {

puts $EXIT_MSG

}

}

Gilles.