Debugging remotely

To debug a TCL file remotely, apply the following steps:

To debug remotely, in Windows it is necessary to load the package comm in the remote program. To do so use add something similar to the code below in you program, in any place that gets executed before beginning the debug session (typically at the beginning of your program):

lappend ::auto_path <RamDebugger path>/addons

package require commR

comm::register application_name 1

Note: The package commR included in RamDebugger is based on the package comm in tcllib with some modifications. Use always commR instead of comm . This package uses sockets for communication. If you have a firewall in your computer, maybe it will not work. In Linux/Unix, the communication is made with the command send , So, it is only necessary to have this command enabled in the program, which is true by default. Note: It can be necessary to check the security of the server in Unix before being able to use send . As a fast workaround, write command xhost - in the UNIX command line.