Changes

Jump to: navigation, search
Starting a debug session
*Open the VSCode workspace
*Go to the ''Terminal'' panel and open an ssh connection to the target machine
**Once logged, execute the <code>start-gdbserver-loop.sh</code> script as shown in the following image. This operation has to be carried out only once, at the beginning of the first debug session.
[[File:BELK-AN-009-gdbserver.png|center|thumb|600px|Starting the <code>gdbserver</code> on the target machine]]
 *[[File:BELK-AN-009-gdbserver.png|center|thumb|Starting the gdbserver on the target machine]]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