Changes

Jump to: navigation, search
Starting a debug session
In practice, once the target is up and running and the example project was copied onto the host machine as stated previously, follow these steps to start a cross-debugging 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.   
*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