-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously the paused state wasn't set and we weren't in the function after hitting "restart frame". Both the previous adapter[1] and the Chrome devtools themselves[2] just discard the response of restart frame and immediately stepInto(). Doing the same here appears to work well and fixes #142. 1. https://github.com/microsoft/vscode-chrome-debug-core/blob/d4bd01568b2bff1109bb75d80d487b5fbbc8427e/src/chrome/chromeDebugAdapter.ts#L1603-L1605 2. https://github.com/ChromeDevTools/devtools-frontend/blob/c96ccd99f0e299d9cce23a8667eb1d35e057f7e0/front_end/sdk/DebuggerModel.js#L1382-L1385
- Loading branch information
1 parent
0a41897
commit fa92b16
Showing
7 changed files
with
67 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
allThreadsStopped : false | ||
description : Paused on breakpoint | ||
reason : breakpoint | ||
threadId : <number> | ||
} | ||
<anonymous> @ ${workspaceFolder}/web/restart.js:6:3 | ||
<anonymous> @ ${workspaceFolder}/web/restart.js:7:3 | ||
{ | ||
allThreadsStopped : false | ||
description : Paused on frame entry | ||
reason : frame_entry | ||
threadId : <number> | ||
} | ||
<anonymous> @ ${workspaceFolder}/web/restart.js:4:3 | ||
<anonymous> @ ${workspaceFolder}/web/restart.js:7:3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<head> | ||
<script src='restart.js'></script> | ||
</head> | ||
<body> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
let a = 0; | ||
|
||
(() => { | ||
a++; | ||
a++; | ||
a++; | ||
})(); | ||
|