Files
sdk/pkg/dds/lib
Danny Tuppeny c5f94bc60f [dds/dap] Show stackTrace of exceptions in the exception text
This adds the `stackTrace` for an exception to the error text (when available).

At first I thought this might be noisy, but it turns out other debuggers in VS Code are already doing it - for example see JS here:

https://github.com/dart-lang/sdk/issues/62466#issue-3842487864

I'm not certain why, but we don't have the `stackTrace` when we break on the `throw`, however in that case the debuggers call stack is already at the correct location, so I don't think this is a problem.

Video of how this looks in VS Code is at https://github.com/dart-lang/sdk/issues/62466#issuecomment-3801129877

Fixes https://github.com/dart-lang/sdk/issues/62466

Change-Id: Id2d3054f066004740e8640516a5903fe97b4808c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/475202
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Jessy Yameogo <yjessy@google.com>
2026-02-27 09:35:27 -08:00
..