Use Komodo to debug Tcl programs locally or remotely. See below for instructions on configuring Komodo to debug Tcl programs. For general information about using the Komodo debugger, see Komodo Debugger Functions. Configuring the Tcl DebuggerYou must specify which Tcl interpreter Komodo should use to debug and run Tcl programs. To specify the Tcl interpreter:
If no Tcl interpreter is displayed in the list, ensure that the location of
the interpreter is specified in your system's ![]() Using the Tcl Remote DebuggerKomodo's remote debugger is used to open a program on another machine and debug the program using Komodo. In order to use Komodo's remote debugger, you must first install the Tcl remote debugger on the remote machine, which calls the machine running Komodo. Then you use the Komodo debugger on your local machine to debug your remote program. Installing the Tcl Remote Debugger on the Remote MachineThe Tcl remote debugger, "kotcldebug.exe", must be installed on the remote machine.
This file was added to the To install the Tcl Remote Debugger:
![]() Invoking the Tcl Remote DebuggerTo debug a Tcl script on a remote machine:
On Windows enter: kotcldebug.exe -port-komodo <komodo-port> -host-komodo <host.location.domain>
-file <your-tcl-code> -app-shell <your-tcl-shell> On Linux enter: kotcldebug -port-komodo <komodo-port> -host-komodo <host.location.domain>
-file <your-tcl-code> -app-shell <your-tcl-shell>
For example, consider the following scenario: Remote Machine In this scenario, you would enter the following command on the remote machine: C:\remote_debug\kotcldebug.exe -port-komodo 9000 -host-komodo mybox -file test.tcl -app-shell C:\Tcl\bin\wish.exe
Once the connection is established, you can use the full Komodo debugging functionality, including setting breakpoints, stepping, viewing the call stack, and watching variables. The output from the debug process appears in the Output Pane at the bottom of the Komodo Workspace. To stop the debugger:
![]()
|