Debug Build vs. Release build in .NET.In Debug mode, You can use the development environment's integrated debugging functions. These allow us to stop at procedure locations, inspect memory and register values, change variables, and observe message traffic. We can add watches and evaluate and dig into the code logic. Also, Debug command only work in Debug mode and not in Release Mode.
The Release mode is used for creating a deployable copy of the application. This would not execute the Debug commands, however one can use Trace command in Release mode to monitor performance and application flow.
In debug mode, you deploy the .pdb file along with the .exe and thus have access to the specific line of code that throws an exception.