开发者

Get Visual Studios to use subdomain?

开发者 https://www.devze.com 2023-01-22 06:07 出处:网络
While writing an asp.net project i may have this url for testing/debugging http://localhost:1234/ I have code that takes in account of subdomains. Can i make visual 开发者_StackOverflow中文版studio

While writing an asp.net project i may have this url for testing/debugging

http://localhost:1234/

I have code that takes in account of subdomains. Can i make visual 开发者_StackOverflow中文版studios call the same code with

http://anysub.localhost:1234/


You can update your hosts file and put in any subdomin for the localhost:

127.0.0.1    example.com
127.0.0.1    sub.example.com

You can then point your browser to either domain. So long as the debugger is attached to IIS/Dev browser, you will be able debug your server side code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号