Udostępnij za pośrednictwem


Metoda IVsDebugger2.LaunchDebugTargets2 — (UInt32, IntPtr)

 

Uruchamia lub dołącza do określonych procesów pod kontrolą debugera.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Składnia

int LaunchDebugTargets2(
    uint DebugTargetCount,
    IntPtr pDebugTargets
)
int LaunchDebugTargets2(
    unsigned int DebugTargetCount,
    IntPtr pDebugTargets
)
abstract LaunchDebugTargets2 : 
        DebugTargetCount:uint32 *
        pDebugTargets:nativeint -> int
Function LaunchDebugTargets2 (
    DebugTargetCount As UInteger,
    pDebugTargets As IntPtr
) As Integer

Parametry

  • DebugTargetCount
    [w] Liczba obiektów docelowych do uruchamiania (określa liczbę VsDebugTargetInfo2 struktury wskazywanej przez pDebugTargets).
  • pDebugTargets
    [w, out] Tablica VsDebugTargetInfo2 programy do uruchamiania lub dołączyć do opisu struktury.

Wartość zwracana

Type: System.Int32

Jeśli metoda się powiedzie, zwraca S_OK.Jeśli nie powiedzie się, zwraca kod błędu.

Uwagi

Podpis COM

Z vsshell80.idl:

HRESULT IVsDebugger2::LaunchDebugTargets2(
   [in] ULONG DebugTargetCount,
   [in, out, size_is(DebugTargetCount)] VsDebugTargetInfo2* pDebugTargets
);

Jest to metoda wywoływana przez DebugLaunch metody do rozpoczęcia wykonywania.Daje to pośrednia DebugLaunch szansę, aby wprowadzić zmiany lub uzupełnienia do debugowania, uruchamianie cyklu przed uruchomieniem debugera.Na przykład dodanie jednego byłoby dodanie niestandardowych debugowania silników do uruchomienia procesu.

[!UWAGA]

Przykładem implementacji DebugLaunch i w jaki sposób używa IvsDebugger::LaunchDebugTargets można znaleźć w My C Package próbki.

Zobacz też

Interfejs IVsDebugger2
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku