2 out of 9 rated this helpful - Rate this topic

Debugging Functions

The following functions are used with debugging.

FunctionDescription
CheckRemoteDebuggerPresent Determines whether the specified process is being debugged.
ContinueDebugEvent Enables a debugger to continue a thread that previously reported a debugging event.
DebugActiveProcess Enables a debugger to attach to an active process and debug it.
DebugActiveProcessStop Stops the debugger from debugging the specified process.
DebugBreak Causes a breakpoint exception to occur in the current process.
DebugBreakProcess Causes a breakpoint exception to occur in the specified process.
DebugSetProcessKillOnExit Sets the action to be performed when the calling thread exits.
FatalExit Transfers execution control to the debugger.
FlushInstructionCache Flushes the instruction cache for the specified process.
GetThreadContext Retrieves the context of the specified thread.
GetThreadSelectorEntry Retrieves a descriptor table entry for the specified selector and thread.
IsDebuggerPresent Determines whether the calling process is being debugged by a user-mode debugger.
OutputDebugString Sends a string to the debugger for display.
ReadProcessMemory Reads data from an area of memory in a specified process.
SetThreadContext Sets the context for the specified thread.
WaitForDebugEvent Waits for a debugging event to occur in a process being debugged.
Wow64GetThreadContext Retrieves the context of the specified WOW64 thread.
Wow64GetThreadSelectorEntry Retrieves a descriptor table entry for the specified selector and WOW64 thread.
Wow64SetThreadContext Sets the context of the specified WOW64 thread.
WriteProcessMemory Writes data to an area of memory in a specified process.

 

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
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?



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.