What exactly is the difference between development and debug?
I've downloaded UE4's source code from github and I've built the engine using the "Development Editor" solution configuration option. Now I know what official unreal documentation says about these configurations (For reference, click here). Debug adds debugging information to the engine as well as to the game and development is basically like release. All the docs say about the development configuration is that with it you are still allowed to modify your game (or engine with the source code) and see those changes reflected in the editor. However, I can also still run an instance of the development configuration with visual studio's debugger and step through the code just as I would be able to with the debug option. My question is then what exactly is the difference between the debug and development solution configuration options in UE4? Do both still contain debug information (.PDB files) but debug just contains more?
asked Aug 17 '16 at 02:34 AM in C++ Programming
You are right on the money. Debug contains a lot more diagnostics code, and a lot of runtime optimizations are disabled. An example would be a check statement.
In development this code would simply output "A breakpoint has been triggered...blah blah" and take you to the offending file where the check statement is. In debug it will give a good stack trace to see what got you there.
I believe you can step through code in release as well, not just development and debug. As long as you are running through Visual Studio it will attach a debugger and you can step through code. Once you package and bake your project through the editor you will no longer be able to step through it since no debugger is attached.
It is possible to attach a debugger to the baked product in order to perform telemetry, but you won't get as much useful information as you would if you were running through development or debug in an unbaked, unpackaged project.
I always develop using the Development Editor settings, so perhaps somebody who actively codes with Debug can give you a better explanation.
answered Aug 17 '16 at 02:43 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here