Performing a Debug Session - Performing a Debug Session - 2026.1 English - UG1144

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2026-06-23
Version
2026.1 English
Creating a Linux Application and Debugging in the Vitis Software Platform
  1. Launch the Vitis software platform. Generated by Your Tool
  2. Create a Linux application by following these steps:
    1. Select File –> Go to New Application Project.
      Generated by Your Tool
    2. Create a platform from the provided .xsa file.
      Generated by Your Tool
    3. Choose a name for your application and select the target processor.
      Generated by Your Tool
    4. Specify domain details, setting the Operating System to Linux.
      Generated by Your Tool
    5. Select an application template (for example, Hello World).
      Generated by Your Tool
  3. Choose the application you wish to debug.
  4. Select Run –> Debug Configuration.
    Generated by Your Tool
  5. Click Launch on Hardware (Single Application Debug) to create a new configuration.
    Generated by Your Tool
  6. In the Debug Configuration window, follow these steps:
    1. In the Main Tab, do the following:
      Generated by Your Tool
      • From the Debug Type drop-down list, select Linux Application Debug.
      • From the Connection drop-down list, choose Linux agent.
    2. In the Application Tab, provide the necessary information:
      Generated by Your Tool
      1. In the Remote File Path field, specify the path in Linux where you want to download the application.
    3. If your application expects any command-line arguments, specify them in the Arguments tab.
      Generated by Your Tool
    4. If your application relies on specific environment variables, define them in the Environment tab.
      Generated by Your Tool
    5. Set up the target connection by entering the Linux hostname or IP address in the Hostname field.
      Generated by Your Tool
      Note: By default, the tcf-agent runs on port 1534 on the Linux machine. If you use a different port, update the Port field with the correct port number.

      Generated by Your Tool
  7. Click the Debug button. This opens a separate console for processing standard I/O operations.
    Generated by Your Tool
  8. Set breakpoints by double-clicking on the desired lines of code.
    Generated by Your Tool
  9. To continue execution, click Resume.
    Generated by Your Tool
  10. For stepping through the code, follow these options:
    Step Over
    Click this to execute the current line and move to the next line in the same function.
    Generated by Your Tool
    Step-In
    Click this to enter into a called function.
    Generated by Your Tool
    Step-Rerun
    Click this to re-execute the current line.
    Generated by Your Tool
  11. To continue running the application after stepping through the code, click Resume again.
    Generated by Your Tool
Ensure that you follow these steps carefully to successfully create a Linux application and debug it using the Vitis software platform.