Was the function in another module in a different project (you have not mentioned that it was) ? If it was, possbily the other project is not being compiled in debug mode, or you have not setup the project dependency correctly.