How to debug js with docker server

Could someone show me how to debug js files with docker server?

I have a docker-compose.yml file which I run. This allows me to go to the webserver (http://localhost:8042/) in my prefered browser of choice. Now from this how can debug any js code that is linked to any of the pages? I am using ubuntu 18.04, Firefox 68 and Webstorm 2019.2 (Chrome can be downloaded if it makes it easier)

0
1 comment

what would you like to debug - the server itself (running in container), or a client application served by this server?

In the first case, please refer to https://www.jetbrains.com/help/webstorm/2019.2/running-and-debugging-node-js.html#ws_node_debug_remote_environment

In the latter case, see https://www.jetbrains.com/help/webstorm/2019.2/debugging-javascript-on-an-external-server-with-mappings.html

0

Please sign in to leave a comment.