代码之家  ›  专栏  ›  技术社区  ›  Ayo

更改Visual Studio 2008中调试器的初始URL[ASP.NET MVC]

  •  2
  • Ayo  · 技术社区  · 14 年前

    我想知道在初始化调试器时是否有更改调试器URL的选项。我想从开始 http://localhost:xxxx/controller/view 而不仅仅是 http://localhost:xxxx/ .

    2 回复  |  直到 11 年前
        1
  •  0
  •   Brian Mains    14 年前

    使用Visual Studio?我认为您可以在属性窗口中将默认页更改为/controller/view…我不确定设计器是否允许您(因为它不映射到文件),但您可以直接编辑项目文件以插入它…

    有时它会删除默认控制器的/controller/视图。

        2
  •  0
  •   Ayo    14 年前

    要回答我自己的问题,可以这样做:

    转到项目右键单击 Properties 然后转到 Web 然后改变 Start Action Start Url http://{port}/{controller}/{view} 然后单击单选按钮 Use Visual Studio Development Server 然后单击单选按钮 Specific Port 到你的港口 开始URL 然后离开 Virtual Path “/”