Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# - Is there really a need for debug build in .net

If the release version produces .pdb files and you can step into every line, put breakpoints etc then why ever bother to build a "debug" version of my components?

I'm using c# for my projects and i didn't have problem debugging release versions. In C++ i had problems debugging optimized code but in C# it works fine. I'm not talking about silly code blocks like if(false)...

like image 863
Adi Barda Avatar asked Nov 28 '22 05:11

Adi Barda


1 Answers

The release builds are more optimized, e.g. when I debug release builds it annoys me that local variable's values disappear when their values are not going to be used by the runtime.

like image 140
Grzenio Avatar answered Nov 30 '22 19:11

Grzenio