Debug node express app with handle bars

Hello all,


I have been trying to get my debugger to work and have not been able to figure it out. I have a node express app that is set up like so:


My program uses express and opens up the home.handlebars page fine. The home page uses the home.js page in the public\js folder. That also loads in fine and is working.

When I run the debugger it works for any break points set in node.js and any breakpoints set in bin/www. Basically anything before the page is rendered. But any breakpoints I set in the home.js page are not being activated. I have tried for a while to get this working and have been unsuccessful, so I would really appreciate a walk through in how I can debug js files in the public/js folder. 


here are the two debugging configs I have that have not worked:





1 comment
Comment actions Permalink

Breakpoints in static js files loaded in browser should normally work using your Javascript Debug run configuration, settings look fine.

Could you share a project the issue can be reproduced with?

I'd also suggest to check if upgrading to 2020.1.2 when it's available make things any better, it includes some fixes that can be related


Please sign in to leave a comment.