Is there a way to get PowerShell to tell VS2013 to attach/detach from a process?


  • I was wondering if I could script VS2013 to that it will attach/detach from a process using PowerShell.  Is it possible?

    I don't mind someone marking a post as "Proposed as answer", but DO NOT mark it as "Answered". If I am the OP, I will decide if a post actually answers my post or not. Thank you.

    Friday, January 29, 2016 7:48 PM

All replies

  • Hi A D R I A N,

    This blog shared us a way to attach to the web process, is it the way you want to get?

    $filter = "*MyWebsite*"
    $w3wp = get-WmiObject Win32_Process -Filter "Name='w3wp.exe'"
    $prid = $w3wp | where { $_.CommandLine -like $filter }
    c:\Windows\System32\vsjitdebugger.exe -p $prid.ProcessId

    A similiar thread:

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.

    Microsoft does not control these sites and has not tested any software or information found on these sites;

    Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.

    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, February 1, 2016 6:15 AM