Debug remote applications

To remotely debug your application:

  1. Create a new connection to your target, if you do not yet have one:
    1. Click the New Connection combo box in the toolbar or select Target > New Connection. The New Connection wizard opens.
    2. Select Generic Connection. Click Next.
    3. Click Browse to look for targets. The Select Target dialog opens. It lists all the targets in the neighborhood with their corresponding IP.
    4. Select your device. Click OK.
    5. You can also change the default connection name, TCF Agent, in the Connection Name text box.
    6. Click Finish to create the connection.
  1. Click the Connect button , next to the combo box in the toolbar, if it is not already connected.
  2. Create a launch configuration:
    1. Select the project to launch in the Project Explorer view.
    2. Go to Run > Debug Configurations. The Debug Configurations dialog opens.
    3. Double-click the DEY C/C++ Remote Application category from the list on the left. A new launch configuration is created for your project. By default, all the required settings are automatically filled but you can modify them in their corresponding tab. Missing parameters or bad configuration errors are displayed in the message area at the top of the dialog.
    4. Click Apply to save the launch configuration.

Note You can also use the Debug As > DEY C/C++ Remote Application shortcut from the context menu of the Project Explorer view.

  1. Remotely debug the application:
    1. Click Debug in the Debug Configurations dialog to start the debug process. The application is automatically transferred to the target and executed.
    2. Eclipse asks whether to switch to the Debug perspective. Click Yes.
      The Debug perspective has a layout oriented to debugging. It displays several views to help you during the debug process: 
    • Code editor displays the execution instruction and add/remove breakpoints.
    • Debug view lists the current process and their threads.
    • Variables view allows you to inspect or change the program variable values.
    • Breakpoints view lists all the breakpoints and allows you to enable/disable or remove them
    • Terminal view lists the input/output of the application being debugged.
    • Debugger console displays the gdb output and allows you to interact with it by sending commands.
    1. You can control your debug execution using the debug toolbar buttons:
      1. In the Debug view, select a thread.
      2. To control the debug session, you can click:

Note For more information, see the "C/C++ Development User Guide" at http://help.eclipse.org/index.jsp.