-
Notifications
You must be signed in to change notification settings - Fork 83
Embed Dart DevTools in Chrome DevTools #1502
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens in the following scenarios:
- You have chrome devtools opened and connected but you try to click the extension again?
- You click
Start Debugging
before a Dart app is detected?
dwds/debug_extension/CONTRIBUTING.md
Outdated
@@ -6,6 +6,7 @@ | |||
pub run build_runner build web -o build -r | |||
``` | |||
|
|||
TODO(elliette): Building with DDC no longer works, figure out why. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you loading the extension correctly from the built directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify, there are two directories:
/dwds/debug_extension/web
/dwds/debug_extension/build/web
Which one is the correct one to load from? Is it (1) for dart2js and (2) for DDC?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct, unless something has changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. I've opened #1506 to investigate (this occurs on master
branch as well)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the TODO with the issue number please.
} else { | ||
alert(''' | ||
Could not find a Dart app to start debugging. | ||
Has the Dart Debug Extension icon turned blue yet? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rephrase this to: The Dart Debug Extension will turn blue when a Dart application is detected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's better, changed to that
], | ||
"run_at": "document_end" | ||
}] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how it autoformats on save for me 🤷♀️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll want to update your IDE settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it working, added old formatting back. Thanks!
dwds/debug_extension/web/panel.html
Outdated
<p>Before debugging, please <strong>disable</strong> focus on the Sources panel for breakpoints:</p> | ||
<code>Settings > Preferences > Sources > uncheck "Focus Sources panel when triggering a breakpoint"</code> | ||
<img src="devtools_settings.png" alt="Picture of the setting in Chrome DevTools to disable."> | ||
<p>And make sure the Dart Debug Extension is <strong>pinned</strong> to your Chrome profile:</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why must they pin it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good point, they don't have to for this. Removed that part of the instructions.
Wdyt? These could be in this PR or follow up polish items. |
Updating so the message is more generic makes sense to me.
Can we not make the button conditionally enabled?
It's fine to be left for a follow up PR. |
dwds/debug_extension/CONTRIBUTING.md
Outdated
@@ -6,6 +6,7 @@ | |||
pub run build_runner build web -o build -r | |||
``` | |||
|
|||
TODO(elliette): Building with DDC no longer works, figure out why. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the TODO with the issue number please.
data-ddr-dart-app
, this is to gate the feature for internal Dart apps for now (currently they are the only ones that have the correct response headers for IFRAME-ing).