How do I get the VLD log of another process?

The main process creates another one that uses the same executable with different arguments.

cmdline = "\"c:\\path\\executable.exe\" arg1 arg2";
CreateProcess(NULL, cmdline, NULL, NULL, FALSE, NULL, NULL, NULL, &si, &pi);

      

So, I set these configs in vld.ini:

StackWalkMethod = safe
ReportTo = both

      

In this case, VLD generates a report file only for the main process, i.e. the created process does not write to the log file (I think the main process supports it). But in visual studio I have information about leaks in the created process in the output window attached to the created process.

My question is, how can I switch the debugger output to a file in another process?

+3


source to share





All Articles