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
Dartium doesn't report about dart scripts if ScriptPreprocessor specified #14865
Comments
Added Area-Dartium, Triaged labels. |
Added Triaged label. |
If I am understanding this correctly, you are using the ScriptPreprocessor to avoid setting breakpoints until the page is loaded. The current ScriptPreprocessor in Dartium is somewhat JS specific so I would like to verify that there isn't a simpler solution before we try to make it work for Dart. Have you tried using Also, I'm unclear from the bug description whether you are saying that ScriptPreprocessor fails for JS loaded in Dartium or just for Dart loaded in Dartium. |
This comment was originally written by devel...@gmail.com
We are using ScriptPreprocessor to append "debugger;" statement if source has source map.
So, user can debug file-level code. It is hack, but there is no normal way to do it. Yes, it is not required to debug Dart in the Dartium, but user can use Dartium as regular browser (I mean — run dart app compiled to js in Dartium). |
I suspect only dart.js is reported because the script is being run as pure Dart code rather than being compiled to js. If you wish to test running dart2js within dartium, omit the "dart.js" bootstrap strip script and include a direct link to the output of running dart2js. to |
Removed this from the 1.6 milestone. |
Removed Oldschool-Milestone-1.6 label. |
This comment was originally written by devela...@gmail.com https://code.google.com/p/chromium/issues/detail?id=438626 So, now, I don't see any possibility to set sourcemap-backed breakpoint — such breakpoints will not work on load due to obvious reasons. |
This issue was originally filed by deve...@gmail.com
IntelliJ IDEA (WebStorm) since IDEA 13/WebStorm 7.0.3 uses ScriptPreprocessor (https://code.google.com/p/chromium/wiki/ScriptPreprocessor) to support sourcemaps (http://youtrack.jetbrains.com/issue/WEB-6413). But it doesn't work in Dartium (31.0.1650.0) — there are no scriptParsed events about dart files (only dart.js will be reported — "clock" sample project).
Works fine if we don't use ScriptPreprocessor, but we need to use ScriptPreprocessor regardless of browser — user can use Dartium as regular browser.
Just to remind you: https://code.google.com/p/chromium/issues/detail?id=304150
The text was updated successfully, but these errors were encountered: