Javascript debugging wordpress roots/sage theme

Hi all,

I'm trying to set up Javascript debugging using the Chrome extension in my project. The project is based on roots/sage so all of the Javascript files are routes that are compiled into one big minified .js file at build time.

The source file I want to debug is in a routes directory, so I right click and choose Debug which creates a debug config, then I go to the configuration settings and insert the url of the page I want to debug, but nothing seems to happen - I just get an error in the run window to do with module export!

To be honest, I'm not sure what I'm doing - does anyone have any specific tips and advice for this kind of configuration with WordPress and roots/sage routes?

Thanks

1 comment
Comment actions Permalink

>then I go to the configuration settings and insert the url of the page I want to debug, but nothing seems to happen - I just get an error in the run window to do with module export!

 

please attach screenshots of your run configuration and the run window with error

0

Please sign in to leave a comment.