在 VS 中附加到工作进程的更快方法
我正在使用 VS 2010。在 VS 2010 中,当您想通过 IIS(而不是 VS 内置 Web 服务器)测试本地 IIS 站点时,附加到工作进程会更加痛苦。
更痛苦的是,因为现在当您通过“调试”菜单选择工作进程()时|附加到进程 | w3wp.exe 它会弹出一个附加提示,询问您是否确定要执行此操作。
即使在此之前,附加到 VS 早期版本中的进程也是非常痛苦的。我每天必须执行此操作 200 次,这浪费了我很多时间,因为点击并执行此操作需要花费 5-10 秒。
现在,如果您有两个不同的工作进程正在运行,那么我可以看到需要进行选择。但在此之前,仅仅进入附加屏幕就很痛苦。
有人知道除了附加到进程对话框之外的快捷方式或更快的方法来附加到 VS 中的工作进程吗?
我不明白为什么微软不添加一个漂亮的工具栏图标或一些可以让你直接跳转到“附加到对话框”屏幕的东西,甚至更好的是你可以指定只显示工作进程作为一个选项,这会让我省去麻烦筛选该列表的时间日志,即使它已经按字母顺序排列。我仍然需要滚动才能找到它。
不管怎样,它现在变成了一个巨大的烦恼......我真的厌倦了每次都让附件进入该过程的漫长过程。
I'm using VS 2010. And in VS 2010 it's even more painful now to attach to the worker process when you want to test your local IIS site via IIS, not the VS built-in web server.
It's more painful because now when you select the worker process () via the Debug Menu | Attach to Process | w3wp.exe it brings up an additional prompt asking if you're sure you want to do this.
Even before this, attaching to the process in previous versions of VS was just outright painful. I must do this 200 times a day which wastes a lot of my time when it takes 5-10 seconds to click through and do this.
Now if you've got 2 different worker processes going, then I can see a need to choose. But before that, just getting to that attach screen is simply painful.
Anyone know a shortcut or just a quicker way other than the attach to process dialog in order to attach to the worker process in VS?
I don't understand why Microsoft doesn't add a nice toolbar icon or something that jumps you right to that Attach to Dialog screen and even better you could be able to specify only to show worker processes as an option which would save me a hell of a log of time sifting through that list even though it's already alphabetized. I still have to scroll to get to it.
Anyway, it's becoming a huge annoyance now..I'm really tired of the long way to get the attachment going to that process every single time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯,这对你正在做的事情来说并不是一个巨大的飞跃,但它可能会简化你的工作流程。你看过命令定制吗?
希望这有帮助! :)
ps:如果您将“附加到进程...”命令添加到“代码窗口”上下文菜单,则您应该能够通过右键单击代码窗口中的任意位置来启动“附加到进程”对话框。
Hm, not a great leap over and above what you are doing, but it may ease your workflow. have you taken a look at command customization?
Hope this helps! :)
ps: if you added Attach to Process... command to Code Window context menu, you should be able to launch the Attach to Process dialog from right clicking anywhere in a code window.
在附加时记录宏,并为该宏分配快捷方式和/或为其分配菜单项。
步骤:
Record a macro while attaching and assign a shortcut for that macro and/or assign a menu item for it.
Steps: