Skip to content

DartPad hides output #4004

Open
Open

Description

@rakudrama

Relevant console output or errors

The browser console contains the stack trace for the compiled program's throw.
I would expect this.

How did this error happen?

Just press Run

Relevant Dart code

void main() {
   print('hello');
   throw 123;
}

What OS did this error occur on?

Linux

What browser(s) did you experience this issue on?

Chromium based (Chrome, Edge)

Do you have any additional information?

The output window contains only this text in red:

Uncaught Error, error: Error: 123

If I comment out the throw it contains this text in white:

hello

Sometimes, with more output, I see the print output flash before it is overwritten or occluded by the error.
This makes it really hard to figure out, for example, which iteration of a loop has the problem.

I was unable to navigate in the Chrome devtools to anything containing the output

Activity

  1. added
    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions