问题
I am debugging a very large c file . It is approx 70000+ lines of code. The debugger is not functioning properly, However the code is compiled correctly. Is there any flag or something which needs to be set to debug this file.
Edit:
I have changed the location of the function from bottom of file to top it is now debugging the function as expected. Don't know the reason
回答1:
The easiest solution is to split the file in two, keeping each file under 65535 lines. There is rarely a good reason to have files that big. Optimizing was a weak reason in the past, but Visual Studio nowadays has /LTCG
link time code generation for that.
来源:https://stackoverflow.com/questions/25382809/visual-studio-2008-debugging-large-c-file