Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7169349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:58:16+00:00 2026-05-28T14:58:16+00:00

Is anyone aware of a Visual Studio 2010 Add-In that will automatically allow you

  • 0

Is anyone aware of a Visual Studio 2010 Add-In that will automatically allow you to attach to a running instance of the ASP.Net Development Server? And if there is more than one currently running, display a quick dialog that lets you choose from a list of just the ASP.Net Development Servers that are running?

Why do I want this? <– feel free to skip this part.

The way I usually develop / debug web applications is to launch a browser and navigate through the application until I get to the page I want (could be many pages deep.) I don’t want to have the debugger attached through these steps for various reasons (it is slower than not having it attached, extraneous break-points may be hit, I may have break when “thrown” turned on and not want to break earlier in the app when handled errors are thrown, etc…)

I navigate to the page I want, then use the Visual Studio menus to Debug > Attach to Process, and then from within the Attach to Process dialog, I have to scroll all the way down (pages and pages and pages of processes) until I find the WebDev.WebServer40.EXE process I want and choose that.

Doing this makes me take my hands off the keyboard and use a mouse (something I generally try to avoid.)

And doing this seems needlessly repetitive since, if I am debugging an ASP.Net Web Application, I always want to attach to an instance of the WebDev.WebServer40.exe.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:58:17+00:00Added an answer on May 28, 2026 at 2:58 pm

    I prefer to do the exact same thing and it IS possible to bind it all to a keystroke with a macro.

    Goto Tools > Macros > Macro IDE

    Add a new module and use this code (the funky comments are for syntax highlighting)

    Imports System
    Imports EnvDTE
    Imports EnvDTE80
    Imports EnvDTE90
    Imports EnvDTE90a
    Imports EnvDTE100
    Imports System.Diagnostics
    Imports System.Collections.Generic
    
    Public Module AttachingModule
        Sub AttachToAspNET()
            Try
                Dim process As EnvDTE.Process
    
                Dim listProcess As New List(Of String)
                '' // uncomment the processes that you'd like to attach to.  I only attach to cassini
                '' // listProcess.Add("aspnet_wp.exe")
                '' // listProcess.Add("w3wp.exe")
                listProcess.Add("webdev.webserver")
    
                For Each process In DTE.Debugger.LocalProcesses
                    For Each procname As String In listProcess
                        If process.Name.ToLower.IndexOf(procname) <> -1 Then
                            process.Attach()
                        End If
                    Next
                Next
    
            Catch ex As System.Exception
                MsgBox(ex.Message)
            End Try
        End Sub
    
    End Module
    

    Click on File > Close and return

    Click on Tools > Options

    Click on Environment > Keyboard

    I put the macro in MyMacros, so I look for “Macros.MyMacros.AttachingModule.AttachToAspNET” in the “Show Commands Containing” textbox”.

    I prefer to use Ctrl+Alt+D but put whatever you want in the “Press Shortcut Keys” textbox and click Assign, then OK

    Now all you have to do is hit Ctrl+Alt+D to attach to all cassini instances.

    I’ve seen various versions of this around the internets and this was the most recent I found. I had to modify that slightly to remove the extra web processes and to drop the .exe from WebDev.WebServer.exe, so that it would debug .net 4.0 instances of cassini.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm pretty aware that Visual Studio 2010 works with C# 4.0. But now I
Technologies: Visual Studio .NET 2008 I'm wondering if anyone is aware of a way
Is anyone aware of a free utility, preferably with source code, that will create
When one creates a new ASP.NET MVC project in visual studio, the New Project
Is anyone aware of any text editors with Visual Studio editor functionality? Specifically, I'm
Is anyone aware of a way to make visual studio completely ignore a file
Is anyone aware of any tricks or object order that will modify the custom
Is anyone aware of a category on NSString or NSMutableString that allows for templating?
Apart from lxml , is anyone aware of Python packages that depend on libxml2
I'm new to WPF development. Is anyone aware of a site or resource that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.