Sul Aga
Sul Aga

Reputation: 6732

Debug in WebStorm where the address is not localhost

I am trying to debug a project which needed a mapping in the hosts files from localhost to some other address like this

127.0.0.1  devproject.com

I can access the web app fine with a port number like this: devproject.com:3000 however this settings doesn't work when I try to debug in WebStorm?

Is there a way to tell WebStorm about this hosts file settings? Or I need to use a whole new settings? I am using node.js debug profile.

Upvotes: 1

Views: 366

Answers (1)

lena
lena

Reputation: 93728

When debugging, you need using same URL as you normally use to access your application; so, to start debugging, you just need to specify http://devproject.com:3000 as URL in JavaScript Debug Run configuration. See https://confluence.jetbrains.com/display/WI/Starting+a+JavaScript+debug+session#StartingaJavaScriptdebugsession-Startingadebugsessionwhenusingadifferentwebserver

Upvotes: 1

Related Questions