Listening for debug engines

The debug daemon is the part of the user interface that listens for an engine connection. Depending on the programming language you are debugging or the manner in which you launched your debug session, the debug daemon will automatically listen for debug engines, or you might have to set it to do so.

About this task

There are three ways to see if the debug daemon is listening for debug engines:

You might want to stop the debug daemon for security reasons or if the daemon port number is required by another user on a multiuser machine. However, the daemon must be listening to start a compiled language debug session.

If the debug daemon is not listening for debug engines, you can start it by performing one of the following tasks:

If the debug daemon is listening, you can stop it by performing one of the following tasks:

The default port used by the debug daemon to listen for debug engines is 8001. You can change the daemon port number from the Debug view or from the Debug Daemon preference page - and you can specify a range of ports for the debug daemon to listen to.

To change the port number from the Debug view, complete these steps:

  1. Click the down arrow to the right of the daemon icon and select Change port from the menu.
  2. A Preferences dialog box opens. In the Daemon port field, enter the port number or range of port numbers (described later on in this topic) that you want to use.
  3. Click OK to change the port number. To revert the port number back to its default value, you can click the Restore Defaults push button.

To change the port number from the Debug Daemon preference page, see the related debug preferences topic.

To specify a range of port numbers, separate values by commas and hyphens. For example, specifying 8001,8003,8900-8903 will cause the debug daemon to use the first port that is available in this range of numbers: 8001, 8003, 8900, 8901, 8902, and 8903. After the daemon connection is established, you can hover over the daemon icon and read (in the hover tooltip) which port was used - or you can click the down arrow to the right of the daemon icon, where the port number is available in the menu.

Note:
  • Unless the port is already in use on your system (you will receive a message in the client if this is the case), it is recommended that you use the default port.
  • If the previously-set daemon port is currently in use for a debug session in the workbench, changing the daemon port will not affect previous connections created through the port. The new port number will be used for subsequent engine connections.
  • If the new port number is already being used by another application, you will be prompted with an error message when the daemon attempts to listen on the new port. In this case, choose a daemon port number that is not being used by another application.

Feedback