Expand description
Listing running processes for the “attach to process” debug launch mode.
Structs§
- Proc
Info - A running process: pid + command (basename of the executable / argv0).
Functions§
- list_
processes - List running processes via
ps. Returns them sorted by pid descending (newest-ish first). Errors are surfaced as an empty list by the caller. - parse_
ps - Parse
ps -axo pid=,comm=output: each line is<pid> <command>.