IDebugEventCallback2IDebugEventCallback2
Essa interface é usada pelo mecanismo de depuração (DE) para enviar eventos de depuração para o Gerenciador de sessão de depuração (SDM).This interface is used by the debug engine (DE) to send debug events to the session debug manager (SDM).
SintaxeSyntax
IDebugEventCallback2 : IUnknown
Observações para implementadoresNotes for Implementers
Visual StudioVisual Studio implementa essa interface para receber eventos de um mecanismo de depuração.implements this interface to receive events from a debug engine.
Observações para chamadoresNotes for Callers
Um mecanismo de depuração normalmente recebe essa interface quando chama o SDM Attach, Attach, ou LaunchSuspended.A debug engine typically receives this interface when the SDM calls Attach, Attach, or LaunchSuspended. Um mecanismo de depuração para enviar eventos para o SDM chamando evento.A debug engine sends events to the SDM by calling Event.
Métodos na ordem de VtableMethods in Vtable Order
A tabela a seguir mostra os métodos de IDebugEventCallback2
.The following table shows the methods of IDebugEventCallback2
.
MétodoMethod | DescriçãoDescription |
---|---|
EventEvent | Envia notificação de eventos para o SDM de depuração.Sends notification of debugging events to the SDM. |
ComentáriosRemarks
Embora EvaluateSync e EvaluateAsync Especifica que eles têm um IDebugEventCallback2
interface, isso não for o caso, e o ponteiro de interface sempre será um valor nulo.Although EvaluateSync and EvaluateAsync specify that they take an IDebugEventCallback2
interface, this is not the case, and the interface pointer will always be a null value. Em vez disso, o mecanismo de depuração deve usar o IDebugEventCallback2
recebidos na chamada à interface Attach, Attach, ou LaunchSuspended.Instead, the debug engine must use the IDebugEventCallback2
interface received in the call to Attach, Attach, or LaunchSuspended.
Se um pacote implementa IDebugEventCallback no código gerenciado, é altamente recomendável que ReleaseComObject ser invocada em várias interfaces que são passadas para evento.If a package implements IDebugEventCallback in managed code, it is strongly advised that ReleaseComObject be invoked on the various interfaces that are passed to Event.
RequisitosRequirements
Header: msdbg.hHeader: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.InteropNamespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dllAssembly: Microsoft.VisualStudio.Debugger.Interop.dll
Consulte tambémSee also
Comentários
Carregando comentários...