How to set breakpoint at the very beginning of program execution

后端 未结 7 1193
眼角桃花
眼角桃花 2020-11-29 08:37

How can I stop the program before loading any of the linked DLLs?

I\'ve tried to set LoadLibraryExW function in the Break At Function debug

7条回答
  •  清歌不尽
    2020-11-29 09:34

    One way to break very early on is to manually add a Function Breakpoint on LdrInitializeThunk. This does not break before ntdll, but should be before any static initalization or user code

提交回复
热议问题