开发者

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

开发者 https://www.devze.com 2023-01-19 19:44 出处:网络
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.

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 inform开发者_运维技巧ation and then resume execution, I can proceed from there.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消