Skip to content

Tutorial : How to debug a remote application ?

mbats edited this page Jan 12, 2013 · 6 revisions

This tutorial describes how to debug a remote application using a Buildroot toolchain in Eclipse.

The first step will be to create a launch configuration, if you already run the execution you can use the same launcher for debugging. Else have a look to the [How to execute a remote application tutorial ?](https://github.com/mbats/eclipse-buildroot-bundle/wiki/Tutorial-%3A-How-to-execute-a-remote-application-%3F/_edit) to see the way to create a new launch configuration.

Add breakpoints

From the editor you can double click on the left side to add a breakpoint : Add breakpoints or still on the left side of the editor by right clicking, a Add breakpoint context menu appears : Add breakpoints

Launch remote debug

Click on the debug button in the toolbar and select the launcher you defined : Debug

Eclipse switched automatically to the Debug perspective : Debug

Click on the Resume toolbar button : Debug

The debugger stops on the breakpoint you defined : Debug first step

You can see directly from the code the actual value associated to a variable just by hovering it with the mouse.

If you run again, you will the variables changing from the Variables view : Debug next step