theadnangondal
theadnangondal

Reputation: 1664

Visual Studio 2008 Debugging large c file

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

Upvotes: 0

Views: 179

Answers (1)

MSalters
MSalters

Reputation: 179819

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.

Upvotes: 1

Related Questions