Any time I have math in a function call and I press F11 in Visual C++ 2008 Express, I get a notice stating that there is no source code at the current location and a choice to either choose "OK" or "show disassembly", for which the latter makes no sense at all to me as I have no clue what any of it means. However, if I press F10 instead to skip over the function call, debugging continues normally. The only way around this problem that I know of is to temporarily remove the math from the function call. Here's an example on what I'm referring to:
What can I do to stop this from happening? Can't the math just get evaluated then step into the function so I can debug the function?Code:int DoSomeMath(int a, int b) { int c = 5; return a+b*c-7; } int main() { int x = 9; DoSomeMath(3, x); // press F11 here allows me to go into the function normally DoSomeMath(2*x, 6*(x-3)-4); // press F11 here and I get the "no source code" notice and debugging won't continue return 0; }