简体   繁体   English

如何在 IIS 而不是 IIS express 中调试 Visual Studio 项目?

[英]How do I debug a visual studio project in IIS instead of IIS express?

This deals with the "debug in web browser" button specifically.这专门处理“在 Web 浏览器中调试”按钮。 按钮图像

I can debug a running project by clicking "attach to process" and that works... sort of.我可以通过单击“附加到进程”来调试正在运行的项目,这很有效……有点像。 It does not allow us to debug javascript or html inside visual studio, and that is what we want to do.它不允许我们在 Visual Studio 中调试 javascript 或 html,这就是我们想要做的。 Currently we are forced to debug in the web browser's tools, and that is less than ideal.目前,我们被迫在 Web 浏览器的工具中进行调试,这并不理想。

We are using visual studio 2017 community.我们正在使用 Visual Studio 2017 社区。

Each of our dev computers has a cloned client database on it.我们的每台开发计算机上都有一个克隆的客户端数据库。 Publishing locally to that works fine.在本地发布可以正常工作。 What i would like to happen is that the debug (play) button ALSO hook to that database.我想要发生的是调试(播放)按钮也挂钩到该数据库。 Currently it is creating a new blank database in IIS.目前它正在 IIS 中创建一个新的空白数据库。 I am positive this is possible, but i do not know how to configure it.我肯定这是可能的,但我不知道如何配置它。

The resulting answer is silly.结果的答案是愚蠢的。 The main connection string in the project needed to point at the sql database, and that's it.项目中的主连接字符串需要指向sql数据库,仅此而已。 We alias it out for each client, but evidently the run button doesn't do the aliasing.我们为每个客户端将其别名化,但显然运行按钮不会进行别名化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM