Debugging Linux applications requires the Linux agent to be set up properly. Refer to Preparing the Linux Agent for Remote Connection for detailed steps.
Debug the Linux application:
Select hello_linux, and click the Open Settings button beside it to open the
launch.jsonfile.Select Application Debug.
Review the configurations:
Target Setup Mode: Application Debug
Target Connection: Linux Agent
Work Directory: ‘/tmp/’
Click Debug.
The debug configuration has identical options to the run configuration. The difference between debugging and running is that debugging stops at the main() function.
Try the debugging features:
Hello World is a simple application. It does not contain much to debug, but you can try the following to explore the Vitis debugger:
Review the tabs on the upper right corner: Variables, Breakpoints, Expressions, and the rest.
Review the call stack on the left.
The next line to execute has a green background.
Step over by clicking the icon on the toolbar or pressing F6 on the keyboard. The printed string will be shown on the Console panel.
Disconnect the connection:
Click the Terminate button on the toolbar or press Ctrl+F2.
Click the Disconnect button on the toolbar.