esac
esac

Reputation: 24685

How to attach to a process as a debugger and query information?

I want to essentially write my own profiler which attaches to my process, freezes execution, inspects the state (current instruction pointer, some metadata, etc..) and write this information to a log. How do I get started with this? If I can get in and inspect this information and then resume execution, I can proceed from there.

Upvotes: 0

Views: 83

Answers (1)

Steve Townsend
Steve Townsend

Reputation: 54148

You need the Debugger API in Win32. An overview here.

To get you going here is info on how to attach to a running process.

Upvotes: 1

Related Questions