Skip to content

Pressing Ctrl+C when --inspector-brk is used but debugger is not connected hangs Vitest #5511

Closed
@sheremet-va

Description

@sheremet-va

Describe the bug

When trying to debug Vitest with a break, Vitest hangs indefinitely if no connection is ever established.

Reproduction

vitest --inspect-brk --no-file-parallelism
Ctrl+C

https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/basic?initialPath=__vitest__/

System Info

Any

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-minor-bugAn edge case that only affects very specific usage (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions