dart-lang / dart-lang/webdev

dwds cannot find a frame in a caller after asynchronous gap

Open
#1,281 1 comment 0 reactions 0 assignees View on GitHub
P2
Dominant language
Dart
Stars
224
Forks
94
Avg merge
4d 3h
Merged PRs (30d)
2

Description

**Repro**

- Debug flutter hello_world example
- Set breakpoint in binding.dart on line 993 as shown in the image
- Start debugging
- When app is stopped on the breakpoint, click on `scheduleAttachRootWidget` function down the the stack past the asynchronous gap
- Type `rootWidget` in the expression evaluation box

**Result**

InternalError: No frame with index 9

**Expected**

expression evaluated successfully

![image](https://user-images.githubusercontent.com/12737689/111713350-af7b2380-880c-11eb-85f3-027380f9ff29.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce this in the Flutter hello_world example using the breakpoint in binding.dart at line 993, then select scheduleAttachRootWidget past the asynchronous gap and evaluate rootWidget. Trace the frame lookup used by expression evaluation; done means the expression evaluates successfully instead of returning “No frame with index 9”.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.