Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>WinDbg does the chain debugging for native code by default. If you want to launch another instance of Visual Studio, check <a href="http://msdn.microsoft.com/en-us/library/a329t4ed.aspx" rel="nofollow noreferrer">Launch the Debugger Automatically</a> on MSDN:</p> <p>To automate the existing debugger, use Marshal.GetActiveObject to get the current EnvDTE.Debugger then let it attach to the process you just created.</p> <blockquote> <p>Sometimes, you may need to debug the startup code for an application that is launched by another process. Examples include services and custom setup actions. In these scenarios, you can have the debugger launch and automatically attach when your application starts.</p> <p><strong>To setup an application to launch the debugger automatically</strong></p> <ol> <li><p>Start the Registry Editor (regedit).</p></li> <li><p>In the Registry Editor, open the HKEY_LOCAL_MACHINE folder.</p></li> <li><p>Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\currentversion\image file execution options.</p></li> <li><p>In the <strong>Image File Execution Options</strong> folder, locate the name of the application you want to debug, such as myapp.exe. If you cannot find the application you want to debug:</p> <p>a. Right-click the <strong>Image File Execution Options</strong> folder, and on the shortcut menu, click <strong>New Key</strong>.</p> <p>b. Right-click the new key, and on the shortcut menu, click <strong>Rename</strong>.</p> <p>c. Edit the key name to the name of your application; myapp.exe, in this example.</p></li> <li><p>Right-click the <em>myapp.exe</em> folder, and on the shortcut menu, click <strong>New String Value</strong>.</p></li> <li><p>Right-click the new string value, and on the shortcut menu, click <strong>Rename</strong>.</p></li> <li><p>Change the name to <code>debugger</code>.</p></li> <li><p>Right-click the new string value, and on the shortcut menu, click <strong>Modify</strong>. The <strong>Edit String</strong> dialog box appears.</p></li> <li><p>In the <strong>Value data</strong> box, type <strong>vsjitdebugger.exe</strong>.</p></li> <li><p>Click <strong>OK</strong>.</p></li> <li><p>From the <strong>Registry</strong> menu, click <strong>Exit</strong>.</p></li> <li><p>The directory containing vsjitdebugger.exe must be in your system path. To add it to the system path, follow these steps:</p> <p>a. Open the <strong>Control Panel</strong> in Classic view, and double-click <strong>System</strong>.</p> <p>b. Click <strong>Advanced System Settings</strong>.</p> <p>c. In <strong>System Properties</strong>, click the <strong>Advanced</strong> tab.</p> <p>d. On the <strong>Advanced</strong> tab, click <strong>Environment Variables</strong>.</p> <p>e. In the <strong>Environment Variables</strong> dialog box, under <strong>System variables</strong>, select Path, then click the <strong>Edit</strong> button.</p> <p>f. In the <strong>Edit System Variable</strong> dialog box, add the directory to the <strong>Variable value</strong> box. Use a semicolon to separate it from other entries in the list.</p> <p>g. Click <strong>OK</strong> to close the <strong>Edit System Variable</strong> dialog box.</p> <p>h. Click <strong>OK</strong> to close the <strong>Environment Variables</strong> dialog box.</p> <p>i. Click <strong>OK</strong> to close the <strong>System Properties</strong> dialog box.</p></li> </ol> <p>Now, use any method to start your application. Visual Studio will start and load the application.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload