What’s the difference between compilation debug=”false” and Release mode

asp.netbuilddebuggingrelease

In ASP.NET, what's the difference between building a project with in the Web.config and with Release mode in the Configuration Manager?

When would you use one and not the other?