on debug build it compiles all debugging info with it, u can smaller your projects by Release build.
Debug build includes browse info etc, so when your hook crashes u can press debug and get to the line in your c++ code where it crashed. in Release build this is not possible.