I have a big project which is a C# project, I have the source but I didn’t build the entire project(it’s too large). And the project is not in a VS.NET project, it’s built by Makefile. So I am using VS.NET to attach to the process when it is running.
Now what I want is when the process opens a specific file, I want to break it and get a stack trace. Firstly I can accept only get the trace without the symbol – I can build the DLL with symbols in another run. I can use procmon.exe to see the trace to open files, but I don’t know how to set breakpoint based on the file being opened. Please suggest.
Assuming your makefile is producing PDB files as Yuriy mentioned, you can do the following:
This should break the debugger at the desired location when that code executes.