我经常需要开发与运行中的进程关联的功能(通常是在不同用户账户下运行的Windows服务)。这样做非常繁琐:
Debug
Attach to Process...
Select Attach To to switch between Native and Managed code
(we use both in the same process so it's not set to automatic)
Scroll down to find it in the list
Hit Attach button
Agree to the confirmation to debug a windows service
由于这是相同的过程,理想情况下我希望在自定义工具栏上有两个按钮(宏):一个用于托管调试,另一个用于本机调试。在两种情况下,进程名称都内置到宏中。
有人能指向正确的资源/文档以设置类似的内容吗?