2008调试大型C文件

2008调试大型C文件

本文介绍了Visual Studio 2008调试大型C文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调试一个很大的c文件.它大约是70000多行代码.调试器无法正常运行,但是代码已正确编译.是否有任何标志或需要设置的东西来调试此文件.

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.

我已将功能的位置从文件底部更改为顶部,现在正在按预期方式调试功能.不知道原因

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

推荐答案

最简单的解决方案是将文件分成两部分,将每个文件保持在65535行之内.拥有如此大文件的理由很少.过去,优化是一个较弱的原因,但是如今,Visual Studio为其生成了/LTCG链接时间代码.

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.

这篇关于Visual Studio 2008调试大型C文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 18:51