Remote debugging BeagleBone Black applications from Eclipse.
Before start this be sure that you have enabled remote access to BBB board from Eclipse.
See the How To Configure Eclipse For BBB board for details.
Install the GDB Server at the BBB board.
Type the following commands in the BBB terminal
debian@beaglebone:~$ sudo apt-get update
debian@beaglebone:~$ sudo apt-get install gdbserver
Install the GDB Multiarch at the Debian PC .
From the PC Debian
andrzej@debian11:~$ sudo apt-get install gdb-multiarch
In the Eclipse project directory create file .gdbinit which should has line set architecture arm
andrzej@debian11:~/eclipse-workspace/Test_BBB$ cat .gdbinit
set architecture arm
From Eclipse menu select Run->Debug Configurations
![](https://www.modbus.pl/Remote%20debug%20from%20Eclipse_pliki/image001.jpg)
Right click at the C/C++ Remote Application and select New Configuration
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Remote%20debug%20from%20Eclipse_pliki/image002.jpg)
In the Main section create New Connection, select SSH type.
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Remote%20debug%20from%20Eclipse_pliki/image003.jpg)
Specify properties of a new connection and press Finish.
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Remote%20debug%20from%20Eclipse_pliki/image004.jpg)
Click Browse button for Remote C/C++ Application File and select remote file for debugging.
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Remote%20debug%20from%20Eclipse_pliki/image005.jpg)
In the Debugger section change the DGB debugger to /usr/bin/gdb-multiarch, and GDB command file to location of .gdbinit file created in previous step.
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Remote%20debug%20from%20Eclipse_pliki/image006.jpg)
Press Debug button. The remote debugging session should start.
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Remote%20debug%20from%20Eclipse_pliki/image007.jpg)