Home > Configuration > NS > setnsextension_trace

setnsextension_trace

Use this method to set enables tracing to the NS log file of extension execution:
off - turns off tracing (equivalent to unset ns extension -trace)
calls - traces extension function calls with arguments and function returns with the first return value
lines - traces the above plus line numbers for executed extension lines
all - traces the above plus local variables changed by executed extension lines
Note that the DEBUG log level must be enabled to see extension tracing.
This can be done by set audit syslogParams -loglevel ALL or -loglevel DEBUG.

Syntax



Parameters

name

Name to assign to the extension object on the Citrix ADC.
This is mandatory parameter.

trace

Enables tracing to the NS log file of extension execution: off - turns off tracing (equivalent to unset ns extension -trace) calls - traces extension function calls with arguments and function returns with the first return value lines - traces the above plus line numbers for executed extension lines all - traces the above plus local variables changed by executed extension lines Note that the DEBUG log level must be enabled to see extension tracing. This can be done by set audit syslogParams -loglevel ALL or -loglevel DEBUG.
Default value = NS_PI_EXTENSION_TRACE_OFF.
Possible Values : off, calls, lines, all.

Return Value

Returns simpleResult

See Also