Skip to content

Conversation

@mansona
Copy link

@mansona mansona commented Dec 23, 2022

Fixes #51998

When debugging something else I found this rogue debugger in the typescript code.

I couldn't find an issue in the backlog that covers this but I figured the PR is just as good as an issue to describe and catalogue the issue 👍 Turns out the bot wanted me to open an issue so I did.

While opening the issue I found out that this was added a long time ago somewhat intentionally #5358 so I wonder if there might be an alternative solution to allow people to block here if they wanted to: maybe we could wrap the debugger in an if-statement that checks an ENV variable. That way people who wanted to block on this debugger could run their build with BLOCK_ON_ASSERT_FAILURE=true and have the same behaviour as now.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Dec 23, 2022
@mansona mansona marked this pull request as ready for review December 23, 2022 10:51
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@MartinJohns
Copy link
Contributor

See #46883. It's intentional.

@jakebailey
Copy link
Member

If TypeScript is debug asserting, then something is seriously wrong; this statement is intentional and is very very useful in debugging the codebase.

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See previous comments. This is intentional.

@sandersn sandersn closed this Jan 9, 2023
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Rogue debugger statement in src/compiler/debug.ts

5 participants