But this time for PSP and automated with VSCode.
- Automate tests execution directly on PSP.
- Shift running and debugging from VSCode to CMake.
- Use PSPSDK libraries for more relatable examples.
Psst! Check dependencies first.
- Open project in VSCode.
- Select
PSP
CMake toolchain if prompted.
- Select
- Configure:
- CMake Tools should autoconfigure the project
- If not, then open CMake tab and on
Project Status
click onDelete Cache and Reconfigure
(this is an icon).
- If not, then open CMake tab and on
- CMake Tools should autoconfigure the project
- Select target:
- In CMake tab
- In
Project Outline
select desired target (must beExecutable
) - Right click and select
Set as Launch/Debug Target
.
- Debug:
- Same as last step above but now click
Debug
to build and debug the project on PSP.- PSPLink must be installed and running on the PSP.
- PSP must be connected to the computer via USB.
- Same as last step above but now click
More info on PSPDEV Docs.
-
Configure project using:
psp-cmake -S . -B build
-
Build project using:
cmake --build build
-
Initialize connection to PSP using:
usbhostfs_pc
- PSPLink must be installed and running on the PSP.
- PSP must be connected to the computer via USB.
-
Start debug server using:
pspsh -e debug ./build/apps/app.prx
- This is an example, the actual command may vary depending on the project.
-
Start debug client using:
psp-gdb ./build/apps/app -q
then inside gdb:
target remote localhost:10001
- This is an example, the actual command may vary depending on the project.
- Based on:
- Knowledge:
- Direct dependencies:
- Indirect dependencies: