Changes

Jump to: navigation, search
The example project
***Start a remote debug session.
*<code>cross-build.sh</code>
**This script is invoked in turn by <code>remote-debugging.sh</code> to run the cross build process. The final command that triggers the actual building process is <code>make hello</code>, that is the same command used to build the program manually.
*<code>start-gdbserver.sh</code>
**This script is invoked by <code>remote-debugging.sh</code> to start a <code>gdbserver</code> instance on the target.
*Open the VSC workspace
*Select the <code>(gdb) Cross launch</code> configuration
*Click on the green ''Start Debugging'' or select the ''Debug->Start Debugging'' menu item. Alternatively, press F5. You should see something like the following picture. It is worth remembering that the scripts take care of killing any <code>gdbserver</code> instance running on the target before starting a new debugging session. This allows starting it with just one click.
4,650
edits

Navigation menu