2

I've followed numerous documents/tutorials to no avail. It looks like someone in the past asked a very similar question but it was not answered exactly but that was two years ago.

2

1 Answer 1

3

AngularJS application running/debugging doesn't differ from any other javascript client-side application running/debugging: you need a JavaScript Debug run configuration for this. The way your Angular application is served (via a custom node.js server, Gulp, WebStorm built-in web server or any other web server) matters nothing - you just have to specify your application URL (the one you use to access it in browser) as URL in your Run configuration. see https://www.jetbrains.com/help/webstorm/debugging-javascript-in-chrome.html, Debugging an application running on an external web server

Sign up to request clarification or add additional context in comments.

2 Comments

Tried this and seems to me you can then just debug the compiled JS, so "after gulp". Would be nice to have breakpoints in pre-compiled code and have these working. Or am I doing something wrong?
must be a problem with sourcemaps - they are either missing or not accurate, so the sources can't be mapped to the compiled code being run. make sure to that 'gulp-sourcemaps' package is used and configured properly

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.