Files
Gary Riches e225e02256 PS5 DevTools: crash reports and memory graphs for PS5 homebrew
A resident payload that attaches to homebrew titles as their debugger,
writes a crash report (registers, every thread's backtrace, stack,
modules, code at the fault, memory before the crash) and shows a TV
notification, then hands the signal back. It samples every title's
memory (direct/GPU, heap, other), CPU and threads, and serves a
dashboard on port 9113. The host tool symbolicates reports against the
matching build's ELF, including reports a player sends as JSON.

Tested on firmware 13.60 with Super Mario Sunshine and SwitchWaker.

Claude-Session: https://claude.ai/code/session_016xMYBaR9GfxtETyVf6er1P
2026-10-14 15:50:36 +01:00

12 lines
435 B
Python

# ctl.py COMMAND [ARG]: one command to ps5vkctl (port 9111).
import socket, sys, os
env = dict(l.strip().split("=", 1) for l in open(os.path.join(os.path.dirname(__file__), "../../PS5_DevLoop/.env")) if "=" in l)
s = socket.create_connection((env["PS5_HOST"], 9111), timeout=60)
s.sendall((" ".join(sys.argv[1:]) + "\n").encode())
out = b""
while True:
b = s.recv(4096)
if not b: break
out += b
print(out.decode().strip())