firefox-devtools / firefox-devtools/vscode-firefox-debug

Support await from debug console

Open
#261 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
447
Forks
76
PR merge metrics
No merged PRs in 30d

Description

I can't use `await` from the debug console in vscode. It shows the following error:
```
await 1
SyntaxError: await is only valid in async functions, async generators and modules
```

But this works from the debug console in firefox.

It would be really nice if we could use await expressions in vscode too, as without them it's not so easy to inspect results of async functions.

Contributor guide

Open the contributing guide

Research direction

Start at the VS Code debug console handling and compare its evaluation behavior with Firefox's debug console, where `await 1` works. Confirm the current SyntaxError, then verify that await expressions and async-function results can be inspected in VS Code without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Feature
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.