Skip to content

WIP #259#260

Open
alt-romes wants to merge 3 commits intomasterfrom
ghc-debugger-259
Open

WIP #259#260
alt-romes wants to merge 3 commits intomasterfrom
ghc-debugger-259

Conversation

@alt-romes
Copy link
Copy Markdown
Collaborator

@alt-romes alt-romes commented Apr 2, 2026

No description provided.

@alt-romes alt-romes force-pushed the ghc-debugger-259 branch 2 times, most recently from ec5cd17 to 593863c Compare April 7, 2026 14:56
@alt-romes
Copy link
Copy Markdown
Collaborator Author

TODO We don't get the external interpreter PID directly, we just get the shellProcessId

@alt-romes
Copy link
Copy Markdown
Collaborator Author

here's an idea though, I could exchange a message before starting the external interpreter which sends the PID over the socket

When using the external interpreter, we don't need to use the `hdb proxy`
between the user and the debugger/debuggee process. When using the
external interpreter, the debuggee process is already launched in a
separate process -- simply attach that process to the user's terminal
with `runInTerminal`.

We still need the proxy case for when the debugger is run with
--internal-interpreter, since then we do need to proxy the user's input
to the debugger+debuggee shared process.

Refactors the proxy/new external-interpreter connection to be
per-session rather than being a shared mutable variable across *all*
server threads. (Important for future where a single server can serve
many debugging sessions e.g. on a remote build server)

Additionally refactors how the runInTerminal setup is abstracted, see
the haddocks in 'RunInTerminalProc'.

Fixes #259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant