在 Visual Studio 2010 中调试 Web 应用程序很烦人

编程入门 行业动态 更新时间:2024-10-26 09:34:29
本文介绍了在 Visual Studio 2010 中调试 Web 应用程序很烦人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我刚开始使用 Visual Studio,发现调试 Web 应用程序相当烦人.进行更改并单击 f5 后,它会将您发送到 localhost:port/ 但是很多次您不是在编辑 localhost:port/ 而是在编辑 localhost:port/someOtherFile,所以你可以看到这很烦人.

I just starting working with Visual Studio and I find that debugging web apps is rather annoying. After making a change and clicking f5 it sends you to localhost:port/ however many times you are not editing localhost:port/ but you are editing localhost:port/someOtherFile, so you can see how this can be pretty annoying.

我希望有一种方法可以优化这一点.理想情况下,我希望能够点击 f5 并让它刷新浏览器中具有 localhost:port/whatever/youGetThePoint 的任何选项卡如果这是可能的,它会进行一些非常好的调试,因为很多次您甚至不必点击浏览器.

I am hoping that there is a way to optimize this. Ideally I would want to be able to hit f5 and have it just refresh whatever tab in my browser has localhost:port/whatever/youGetThePoint If this is possible it would make for some really nice debugging because many times you would never even have to click the browser.

另外,为什么我们必须按 shift+f5 才能停止调试.为什么不只是 f5...

Also, why do we have to hit shift+f5 to stop debugging. Why not just f5...

我正在使用 MVC2

推荐答案

在解决方案管理器中点击您的应用查看 -> 属性页选择左侧的Web"标签将开始操作"设置为特定页面.

这篇关于在 Visual Studio 2010 中调试 Web 应用程序很烦人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 12:58:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1154940.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:烦人   应用程序   Studio   Visual   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!