Get Visual Studios to use subdomain?

前端 未结 1 1401

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 subd

1条回答
  •  心在旅途
    2021-01-05 16:15

    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 讨论(0)
提交回复
热议问题