-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
integrated debugging #109
base: master
Are you sure you want to change the base?
integrated debugging #109
Conversation
that is awesome!! 😍 |
I tried debugging from IntelliJ for a bit, it works quite well. Debugging through sourcemaps is not perfect, especially arrow functions. The generated sourcemaps look perfect; Chrome might be the problem. It might help to blacklist some babel transforms during development. IntelliJ has a hard-coded 10 MB file size limit on sourcemaps it will load. My |
@denofevil can you comment on that file size limit? this might become a problem for larger apps. |
@Turbo87 source maps loading does not use usual file limit |
This is the specific error I get loading my 15 MB
|
@dwickern what server is serving the files and what response headers does it provide for source maps? From the source code looks like if there's a |
@denofevil it is served by an express server using I'll try and verify this via wireshark to make sure. |
here is what wireshark shows me:
so it seems that the sourcemap is indeed not served with a Note that this example is not using a 10MB+ sourcemap, but is just the sourcemap produced by an almost fresh |
@Turbo87 we're going to fix that on our side, but it's probably worth checking whether |
@denofevil I'll look into that. Thanks for the feedback! |
it appears that this is not supported by the |
@Turbo87 yeah, sounds reasonable. Anyway, fix just landed on master, so you can expect it in 2017.1 EAP which is going to start pretty soon |
This LGTM, all that's left are some docs describing how to use this |
the sourcemaps that Ember CLI produces by default are only mapping the ES-latest transforms, but not the AMD modules transform. @dwickern worked on making that configurable, but if I remember correctly there were some unresolved issues. |
@dwickern Maybe you can merge this PR now, and resolve sourcemap issues as a separate issue? |
This change associates source files with URLs so that IntelliJ can find your sources.
baseUrl: '/'
Debugging steps:
Run -> Edit Configurations...
+
button and select "JavaScript Debug"http://localhost:4200
Without this change, it's possible to debug by mapping
/app
tohttp://localhost:4200/assets/my-app
. However you can't have two mappings for the same URL, so you can't debug in-repo addons.