Skip to content

Support running a process under the debugger and a PTY (terminal) simultaneously #189

Description

Summary

DCP cannot currently run a process under the debugger (ExecutionType.IDE) and attach it to a pseudo-terminal (PTY) at the same time. When a resource is launched under a PTY, traffic is bridged through a terminal-host bridge; routing the same resource to IDE/debugger execution bypasses that PTY wiring entirely, so the terminal never attaches.

Aspire workaround

Aspire's WithTerminal() currently force-disables debugger/IDE execution for terminal-attached resources (they always run as a plain process) precisely because of this limitation. See microsoft/aspire#18308.

Specifically, WithTerminal() adds a disabled SupportsDebuggingAnnotation so the resource is never routed to ExecutionType.IDE inside a debug session.

Ask

Add support in DCP for running a process under the debugger while it is also attached to a PTY. Once that ships, the Aspire workaround in WithTerminal() (and the supporting opt-out plumbing) can be removed so terminal-attached resources become debuggable again.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions