When breakpoint is hit, I get the Breakpoint object by calling Debugger::get_BreakpointLastHit(), then I try to get the function line offset from the acquired object by calling Breakpoint::get_FunctionLineOffset(). To my surprise, the result is always 1 even the breakpoint was hit in the middle of a function. This happens only in Visual Studio 2012. I have verified Breakpoint::get_File() and Breakpoint::get_FunctionName() work fine.
Does anyone has experienced similar problem? Is any workaround for this problem?
Thanks!