Create a project with source code and debug remote application over adb

Suppose there is a project folder /home/srcdbg/project/test in the server and the cross-compiled executable is /home/srcdbg/project/test/srcdbg_test. srcdbg_test is put into the /data/test/ directory on the arm board to run and debug. gdb is also on the arm board for debugging application. Here are steps to create a new project.

1. Select File > New > Solution... > Wizard... and then click the OK button.

2. Enter the name of the project and click Next button.

3. Enter the correct Remote host, Port, Username, Password, Initial path and click Next button.

4. If you prefer, you can also access files via samba as follows and click Next button.

5. Click Next button.

6. Select Link type as ADB, input ADB path and input the Initial path of srcdbg_test on the arm board. Click Next button.

7. Click Finish button.

8. Enter the solution File name and click Save button.

9. Enter the project File name and click Save button.

10. Right click the srcdbg_test project and select Add > Add Existing Remote File to add the project files.

11. Select the needed folders and files and click Open button.

12. Select Build > Synchronize Files... to synchronize files and build the project symbols.

13. Select Build > Build Project to build the project.

14. Right click the srcdbg_test project and select Properties. Make sure it's an absolute path of the "Attach to program" line. Change the string "-i=mi ./$PROJECTNAME$" to "-i=mi /data/test/srcdbg_test".

15. Select Debug > Start Debugging to debug the project.

16. Start debug with debug tool bars.