C# 클래스 VSNDK.DebugEngine.EngineCallback

파일 보기 프로젝트 열기: blackberry/VSPlugin 1 사용 예제들

공개 메소드들

메소드 설명
EngineCallback ( AD7Engine engine, IDebugEventCallback2 ad7Callback ) : System

Constructor.

OnAsyncBreakComplete ( AD7Thread thread ) : void

This will get called when the engine receives the breakpoint event that is created when the user hits the pause button in VS.

OnBreakpoint ( AD7Thread thread, IList clients ) : void

Send an event to SDM with the breakpoint that was hit.

OnBreakpointBound ( object objBoundBreakpoint, uint address ) : void

Engines notify the debugger that a breakpoint has bound through the breakpoint bound event.

OnError ( int hrErr ) : void

IDebugErrorEvent2 is used to report error messages to the user when something goes wrong in the debug engine. The VSNDK debug engine doesn't take advantage of this. Not implemented.

OnException ( ) : void

Exception events are sent when an exception occurs in the debugged that the debugger was not expecting. The VSNDK debug engine does not support these. Not implemented.

OnModuleLoad ( AD7Module debuggedModule ) : void

The VSNDK debug engine does not support binding breakpoints as modules load since the primary exe is the only module symbols are loaded for. A production debugger will need to bind breakpoints when a new module is loaded.

OnOutputString ( string outputString ) : void

Send to the session debug manager (SDM) an event to output a string. Not used.

OnStepComplete ( ) : void

Step complete is sent when a step has finished. Not implemented.

OnSymbolSearch ( AD7Module module, string status, uint dwStatusFlags ) : void

Engines notify the debugger about the results of a symbol search by sending an instance of IDebugSymbolSearchEvent2. Not used.

OnThreadStart ( AD7Thread debuggedThread ) : void

Send an event to notify the SDM that this thread was created.

Send ( IDebugEvent2 eventObject, string iidEvent, IDebugProgram2 program, IDebugThread2 thread ) : void

Send events to the debugger.

Send ( IDebugEvent2 eventObject, string iidEvent, IDebugThread2 thread ) : void

Call the method that will send the event to the debugger with all the arguments.

메소드 상세

EngineCallback() 공개 메소드

Constructor.
public EngineCallback ( AD7Engine engine, IDebugEventCallback2 ad7Callback ) : System
engine AD7Engine The AD7Engine object that represents the DE.
ad7Callback IDebugEventCallback2 The IDebugEventCallback2 object that receives debugger events.
리턴 System

OnAsyncBreakComplete() 공개 메소드

This will get called when the engine receives the breakpoint event that is created when the user hits the pause button in VS.
public OnAsyncBreakComplete ( AD7Thread thread ) : void
thread AD7Thread The thread running in a program.
리턴 void

OnBreakpoint() 공개 메소드

Send an event to SDM with the breakpoint that was hit.
public OnBreakpoint ( AD7Thread thread, IList clients ) : void
thread AD7Thread The thread running in a program.
clients IList List of bound breakpoints. At this moment, this list has only one element.
리턴 void

OnBreakpointBound() 공개 메소드

Engines notify the debugger that a breakpoint has bound through the breakpoint bound event.
public OnBreakpointBound ( object objBoundBreakpoint, uint address ) : void
objBoundBreakpoint object The bounded breakpoint.
address uint 0.
리턴 void

OnError() 공개 메소드

IDebugErrorEvent2 is used to report error messages to the user when something goes wrong in the debug engine. The VSNDK debug engine doesn't take advantage of this. Not implemented.
public OnError ( int hrErr ) : void
hrErr int
리턴 void

OnException() 공개 메소드

Exception events are sent when an exception occurs in the debugged that the debugger was not expecting. The VSNDK debug engine does not support these. Not implemented.
public OnException ( ) : void
리턴 void

OnModuleLoad() 공개 메소드

The VSNDK debug engine does not support binding breakpoints as modules load since the primary exe is the only module symbols are loaded for. A production debugger will need to bind breakpoints when a new module is loaded.
public OnModuleLoad ( AD7Module debuggedModule ) : void
debuggedModule AD7Module A module loaded in the debugged process.
리턴 void

OnOutputString() 공개 메소드

Send to the session debug manager (SDM) an event to output a string. Not used.
public OnOutputString ( string outputString ) : void
outputString string The output string.
리턴 void

OnStepComplete() 공개 메소드

Step complete is sent when a step has finished. Not implemented.
public OnStepComplete ( ) : void
리턴 void

OnSymbolSearch() 공개 메소드

Engines notify the debugger about the results of a symbol search by sending an instance of IDebugSymbolSearchEvent2. Not used.
public OnSymbolSearch ( AD7Module module, string status, uint dwStatusFlags ) : void
module AD7Module
status string
dwStatusFlags uint
리턴 void

OnThreadStart() 공개 메소드

Send an event to notify the SDM that this thread was created.
public OnThreadStart ( AD7Thread debuggedThread ) : void
debuggedThread AD7Thread The new thread running in a program.
리턴 void

Send() 공개 메소드

Send events to the debugger.
public Send ( IDebugEvent2 eventObject, string iidEvent, IDebugProgram2 program, IDebugThread2 thread ) : void
eventObject IDebugEvent2 Event object to be sent to the debugger.
iidEvent string ID of the event.
program IDebugProgram2 A program that is running in a process.
thread IDebugThread2 A thread running in a program.
리턴 void

Send() 공개 메소드

Call the method that will send the event to the debugger with all the arguments.
public Send ( IDebugEvent2 eventObject, string iidEvent, IDebugThread2 thread ) : void
eventObject IDebugEvent2 Event object to be sent to the debugger.
iidEvent string ID of the event.
thread IDebugThread2 A thread running in a program.
리턴 void