Windbg: create function input and output log

I want to create a function input and output log for my code. I use the following command in WinDbg- Function name and return value

bm <module_name>!* "kcL1;.echotime;gu;r eax;.echotime;gc;" 

Now I want to do this for all function modules, but I do not want to write code for each module again. Is there a way to tell bm to read the names of the modules from the file that I am creating with "lm" and set a breakpoint for each module or something even simpler.

Also, how can I tell bm not to print the output to the screen? I am using a log file.

Sometimes I don’t see the time to leave the call. What could be the reason for this? How can I fix it?

+6
source share
1 answer

you can use !for_each_module

You will not see the call exit time if another breakpoint is deleted (in a different thread, or if the function calls other functions that have breakpoints)

+3
source

Source: https://habr.com/ru/post/886015/


All Articles