Visual Studio 2008 Debugging large c file

删除回忆录丶 提交于 2019-12-12 02:07:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!