Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

ACE TCL script debug.

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
Cisco Employee

Re: ACE TCL script debug.

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.

244
Views
0
Helpful
1
Replies
CreatePlease to create content