Debugging Javascript (Angular app) while running express js
I'm running a MEAN app locally
I would like to debug the angular app, so I tried putting a breakpoint in one of the angular controllers
I tried different ways to debug it:
Through the NodeJS debug configuration, didn't work for me
I tried running the app through the terminal and debug the angular app with the Javascript debug configuration, also didn't work for me
Anyone knows how to do it?
Thanks,
Assaf
Please sign in to leave a comment.
Using Javascript debug configuration is the right way to go. but you will likely need to specify Remote URL mappings - see https://confluence.jetbrains.com/display/WI/Starting+a+JavaScript+debug+session#StartingaJavaScriptdebugsession-Startingadebugsessionwhenusingadifferentwebserver, https://blog.jetbrains.com/webstorm/2014/06/mean-stack-walkthrough-and-tips/