You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Launch configuration for C/C++ debugging of Ark packages #7175
We could make it much easier to debug native code in a package by providing a launch configuration that would:
Automatically pick Ark's PID via a command. Ideally would not require executing code in Ark so it's possible to attach to a session that is running code (can be important to figure out why Ark is stuck). So the PID (which is unknown from the parent process) would be sent by Ark on startup and cached on the frontend side.
I'm not sure if this configuration should be provided by the R extension (dynamically) or by a usethis function (statically). My hunch is that a dynamic configuration is more convenient.
So the PID (which is unknown from the parent process) would be sent by Ark on startup and cached on the frontend side.
FWIW the kernel supervisor already knows the PID for Ark: it's part of the info that comes back when you query for session details. It might be easiest to get it from there.
Activity
jmcphers commentedon Apr 8, 2025
FWIW the kernel supervisor already knows the PID for Ark: it's part of the info that comes back when you query for session details. It might be easiest to get it from there.
positron/extensions/positron-supervisor/src/kcclient/model/activeSession.ts
Lines 27 to 30 in 72b8d5b