Debugging Functions

The following functions are used with debugging.

FunctionDescription
CheckRemoteDebuggerPresentDetermines whether the specified process is being debugged.
ContinueDebugEventEnables a debugger to continue a thread that previously reported a debugging event.
CopyExtendedContextCopies processor state from one processor context record to another.
DebugActiveProcessEnables a debugger to attach to an active process and debug it.
DebugActiveProcessStopStops the debugger from debugging the specified process.
DebugBreakCauses a breakpoint exception to occur in the current process.
DebugBreakProcessCauses a breakpoint exception to occur in the specified process.
DebugSetProcessKillOnExitSets the action to be performed when the calling thread exits.
FatalExitTransfers execution control to the debugger.
FlushInstructionCacheFlushes the instruction cache for the specified process.
GetEnabledExtendedFeaturesReturns the processor extended features that are enabled by the operating system.
GetExtendedContextLengthRetrieves the buffer size needed to store a processor context record.
GetExtendedFeaturesMaskRetrieves the extended features for which state is stored in a processor context record.
GetThreadContextRetrieves the context of the specified thread.
GetThreadSelectorEntryRetrieves a descriptor table entry for the specified selector and thread.
InitializeExtendedContextInitializes a processor context record.
IsDebuggerPresentDetermines whether the calling process is being debugged by a user-mode debugger.
LocateExtendedFeatureRetrieves state for the specified extended feature from a processor context record.
LocateLegacyContextReturns a pointer to the CONTEXT structure in a processor context record.
OutputDebugStringSends a string to the debugger for display.
ReadProcessMemoryReads data from an area of memory in a specified process.
SetExtendedFeaturesMaskSpecifies the processor extended features to store in a processor context record.
SetThreadContextSets the context for the specified thread.
WaitForDebugEventWaits for a debugging event to occur in a process being debugged.
Wow64GetThreadContextRetrieves the context of the specified WOW64 thread.
Wow64GetThreadSelectorEntryRetrieves a descriptor table entry for the specified selector and WOW64 thread.
Wow64SetThreadContextSets the context of the specified WOW64 thread.
WriteProcessMemoryWrites data to an area of memory in a specified process.

 

Send comments about this topic to Microsoft

Build date: 7/30/2009

Tags :


Community Content

ddaS-edEn
Which Debugging Function to use for Vista x64?

Which debugging function works successfully on Vista 64 bit - so that I can get the output in DebugView v4.64?

I'm using OutputDebugString() that seems to have no effect in Vista x64.

I understand that OutputDebugString() works only with Win32, but whats its replacement in Vista x64?

In immediate need. :(

 

OK. GOT IT.!!

This is the SOLUTION:

In DebugView 4.64, make sure that Capture Global Win32 is enabled. To do this, in the DebugView 4.64 main menu go to Capture and see if the Capture Global Win32 item is checked. If not, check it.

Upon doing this, you'll notice that OutputDebugString() output appears in DebugView 4.64 on Vista x64.

Tags :

tepez
Get next assembly command to be executed
How can I get the next assembly command to be executed (the opcode and the parameters) of a thread which is now suspended?



Tags :

Page view tracker