-
Notifications
You must be signed in to change notification settings - Fork 229
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
How to debug with this setup #4
Comments
@cburgdorf glad you've find this repo useful! In all honesty, I didn't dive into the proper source map thing yet. My main worry is that Angular2 is already transpiled once (AtScript -> ES6) so we need to take source maps from this tranpilation into account and I don't know how to do it with Gulp :-) Something to dig into, I will probably have some time during the weekend but any help here would be much appreciated! |
@cburgdorf we seem to have a PR that offers a partial solution (#6) - you can get it for a test drive! |
Looks like what I had before but what didn't hit the breakpoints for me
|
I left a comment in #6 |
I tried #6 and it does generate sourcemaps but I can't get my debugger to load the sources. If I use debugger; statement in my code, this is recognised but it can't find the source (using firefox dev edition standard tools) |
have a look at this PR if looking for source maps support -> #37 |
Hey Pawel,
thanks for setting this up. This made me finally put my hand on Angular2 code because it's so easy to dive into 👍
One thing that's still unclear to me though: How should I best debug my app with this setup? I know I can set breakpoints in the transpiled code and it kinda works. But I'd rather have proper source maps. I went on and added
gulp-sourcemaps
to the gulpfile and while I see the ES6 source appearing in the developer tools, breakpoints are not being hit there.Any hint how to handle this with this setup?
Cheers,
Christoph
The text was updated successfully, but these errors were encountered: