M
M
Mark_Aizek2019-05-05 07:25:42
C++ / C#
Mark_Aizek, 2019-05-05 07:25:42

Is there a way to trace an application's stack over time from another application in windows?

Good afternoon.
There is a Qt program with MingW that runs on Windows. I would like to get the most detailed call stack after a given time interval. Please let me know what is the best way to solve this problem. The program has 1 main thread.
----------------------
As I myself imagine this:
1. Import gdb-debugging into a pdb-file.
2. Run the program, connect to it using WinApi via pid.
3. Use the WinAPI StackWalk function to display up to 64 previous calls by timer.
4. Write the resulting log to a file.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question