Changing Project Application Settings
The Application tab of the Project window lets you select basic application settings such as the Tcl script to debug and the Tcl interpreter to use. The contents of the Application tab depend on the Debugging Type option you select:
- Local Debugging: Debug a Tcl script running normally on your system.
- Remote Debugging: Debug a remote, embedded, or CGI Tcl application. See "Debugging Remote, Embedded, and CGI Applications" for information on remote debugging.
If you select the Local Debugging option, the Application tab appears as shown in Figure 8.
Figure 8 The Project Application Settings Tab, Local Debugging
You can change the following Local Debugging settings for a project:
- Script: Type the pathname of the Tcl script to run, or click the Browse button next to the field to locate the Tcl script. You can also select the script from the drop-down list, which lists scripts that you have used recently in this project.
- Script Arguments: Type any script arguments you want to pass to the script when you run it under the debugger. You can also select the arguments from the drop-down list, which lists the arguments that you have specified recently in this project.
- Working Directory: Type the full path of the directory that you want to use for the working directory inside the Tcl/Tk script. If you don't specify a working directory, TclPro Debugger uses the directory that contains the Tcl script you are debugging. You can also select the working directory from the drop-down list, which lists the working directories that you have used recently in this project.
- Interpreter: Type the path and name of the Tcl interpreter or click the Browse button next to the field to locate the interpreter. You can use any Tcl interpreter, such as prowish83, protclsh83, or a custom Tcl shell. You can also choose one from the drop-down list, which contains Tcl interpreters that have been installed in the standard locations on your computer and any other Tcl interpreters that you have previously specified for this project.
Note: TclPro Debugger works properly with most custom Tcl interpreters. However, if your interpreter doesn't accept as its first command-line argument a Tcl script to execute or if it doesn't pass subsequent command-line arguments to the script using the standard argc and argv Tcl variables, then you must take special steps to use your interpreter with TclPro Debugger. See "Using Custom Tcl Interpreters with TclPro Debugger" for more information.
If you select the Remote Debugging option, the Application tab appears as shown in Figure 9.
Figure 9 The Project Application Settings Tab, Remote Debugging
The only application setting you can change when debugging remotely is the TCP port that TclPro Debugger uses to communicate with the remote application. This is the port that you need to pass to debugger_init when starting your debugging session from a remote application. See "Debugging Remote, Embedded, and CGI Applications" for information on remote debugging.
Note: Changes that you apply to your project settings (by clicking either the OK or Apply button) while your application is running don't take effect until the next time you restart your application.
http://www.ajubasolutions.com Voice: (650) 210-0100 Fax: (650) 210-0101 support@ajubasolutions.com |