Difference between revisions of "Ns adp debug"

From AOLserver Wiki
Jump to navigation Jump to search
(Created page with ' '''NAME''' : ns_adp_debug - Start TclPro debugging for an adp page (or script) '''SYNOPSIS''' : '''ns_adp_debug''' ''?procsPattern?'' ''?host?'' ''?port?'' '''DESCRIPTION'''…')
 
m
Line 1: Line 1:
 
 
'''NAME'''
 
'''NAME'''
  
Line 10: Line 9:
 
'''DESCRIPTION'''
 
'''DESCRIPTION'''
  
: This command enables basic debugging when used with the TclPro debugger.  It will connect to a remote debugger if not already connected.  The procsPattern argument specifies a glob pattern to
+
: This command enables basic debugging when used with the TclPro debugger.  It will connect to a remote debugger if not already connected.  The procsPattern argument specifies a glob pattern to match Tcl procedures to be instrumented by the debugger and the host and port arguments are passed to the TclPro debugger_init procedure to connect to the remote debugger.
match Tcl procedures to be instrumented by the debugger and the host and port arguments are passed to the TclPro debugger_init procedure to connect to the remote debugger.
 
  
 
'''NOTES'''
 
'''NOTES'''

Revision as of 00:08, 14 June 2010

NAME

ns_adp_debug - Start TclPro debugging for an adp page (or script)

SYNOPSIS

ns_adp_debug ?procsPattern? ?host? ?port?

DESCRIPTION

This command enables basic debugging when used with the TclPro debugger. It will connect to a remote debugger if not already connected. The procsPattern argument specifies a glob pattern to match Tcl procedures to be instrumented by the debugger and the host and port arguments are passed to the TclPro debugger_init procedure to connect to the remote debugger.

NOTES

This command is essentially a wrapper to ns_adp_debuginit that marks the current interpreter for deletion and links the adp output buffer to a tcl variable named ns_adp_output that can be watched in TclPro.
If ns/server/servername/adp enabledebug config parameter is true, then any adp requests that include a &debug=filePattern in the query string will effectively execute this command automatically for any requested or included adp file matching the pattern and any manual calls to ns_adp_debug will be ignored. For such adp requests, dprocs, dhost and dport query string parameters will be used for the arguments above.

SEE ALSO

ns_adp_debuginit, ns_markfordelete

-