I'm using VS2010 to develop my project. In my codebase, I use the stackframe's GetFileLineNumber()
function. At runtime, however, it always returns 0
. This happens even though I am running a debug build. I have also confirmed that the generated pdb file exists alongside the generated executable.
Any ideas?