Creating a "Wrapper" Script for Remote Debugging
If you decide to create a new script, that script should source the prodebug.tcl file, call debugger_init, and then source the file that was originally the main script of your application. This new script becomes the main script of your application. Your new main script may look like the following:
# Set TclProDirectory to the platform-specific bin
# subdirectory of your TclPro distribution.
set TclProDirectory "/usr/local/TclPro1.4/solaris-sparc/bin"
source [file join $TclProDirectory prodebug.tcl]
# Assume the variables $host and $port respectively contain
# the name of the machine on which TclPro Debugger is
# running and the port on which it is listening.
debugger_init $host $port
# Assume $myOriginalMainScript contains the path of your
# original script.
source $myOriginalMainScript
http://www.ajubasolutions.com Voice: (650) 210-0100 Fax: (650) 210-0101 support@ajubasolutions.com |