Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: restart frame not working #160

Merged
merged 2 commits into from
Dec 5, 2019
Merged

fix: restart frame not working #160

merged 2 commits into from
Dec 5, 2019

Conversation

connor4312
Copy link
Member

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

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
Copy link
Contributor

@dgozman dgozman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix, looks good!

@@ -26,19 +26,6 @@ describe('breakpoints', () => {
p.assertLog();
});

itIntegrates('script', async ({ r }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this removal is accidental?

@connor4312 connor4312 merged commit fa92b16 into master Dec 5, 2019
@connor4312 connor4312 deleted the fix/restart-frame branch December 5, 2019 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pwa-chrome: Restart Frame not working
3 participants