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

Better debugging of the Protocol #184

Closed
paulirish opened this issue Apr 12, 2016 · 2 comments
Closed

Better debugging of the Protocol #184

paulirish opened this issue Apr 12, 2016 · 2 comments

Comments

@paulirish
Copy link
Member

Any requests here on what everyone's debugging needs are and how things could be better?

To get started.. here's some docs that I can drop into a real markdown file..

Inspecting DevTools' Protocol Traffic

image

  1. close yr tabs
  2. open voicememos in a tab
  3. open http://localhost:9222 in a tab
  4. maybe reload it once. sometimes its stale.
  5. select the voice memos target from Inspectable Pages
  6. This'll open a devtools inspecting voicememos (VM DT).
  7. And you'll see this sorta URL in the omnibox:
    http://localhost:9222/devtools/inspector.html?ws=localhost:9222/devtools/page/8532blahblah
  8. inspector inception time! Hit cmd-shift-i to open a new DevTools (DT^2) that's inspecting the VM DT.
  9. In DT^2 go to Network panel. filter to look at just websocket
  10. While your focus is in DT^2, hit cmd-r. This will reload VM DT (because in devtools, cmd-r reloads the page it inspects, rather than itself (which is actually bound to alt-r))
Getting Device Mode UI

From Chrome DevTools Contribution Guide comes a technique for getting DeviceMode UI in the above approach:

  • Add can_dock=true&dockSide=right& into the query parameters.
    • It'll now look like http://localhost:9222/devtools/inspector.html?experiments=true&can_dock=true&dockSide=right&ws=localhost:9222/devtools/page/8532blahblah
@brendankenny
Copy link
Member

flags to start with?
something about right docking so you can turn on mobile emulation? Or is that no longer needed

@paulirish
Copy link
Member Author

something about right docking so you can turn on mobile emulation? Or is that no longer needed

good call. added to the above.

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

No branches or pull requests

2 participants