Debug vs Release Builds

Ask general questions here.
Certified Professional
Certified Professional
Posts: 23
Joined: Wed Jun 25, 2014 11:59 am

Debug vs Release Builds

Post by brentmclauclan » Wed Aug 06, 2014 12:22 pm

Hi there.

Just wondering what the main differences between Debug and Release builds are?



Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Debug vs Release Builds

Post by krstcs » Wed Aug 06, 2014 1:25 pm

Debug builds are not optimized and are compiled in-line for easier debugging.

Release builds are optimized by the compiler for faster running and do not have the debugging symbols included usually.

For Ranorex scripts, it really won't matter if you use Debug builds all the time. The speed increase in an application of this type is negligible and you will get more use out of having the Debugging available most of the time.

If you have very large tests (such that compiling them takes more than 10 minutes) then you "might" get a bit more speed out of the Release mode, but if your tests are that big, I would humbly submit that you need to re-think your test strategy. Keep it simple. :D

Note: This is a feature of the .NET (and most other languages') compiler, not specifically a Ranorex feature. Ranorex is built on .NET and Ranorex Studio is built on SharpDevelop 3.2, both of which include this setting.
Shortcuts usually aren't...