Sto lavorando su progetti Asp.net MVC4 utilizzando Visual Studio 2012.debugger non si ferma in caso di errore
Quando c'è un errore durante il debug, è usato per fermare sull'errore.
Ma all'improvviso, il debugger non si ferma e sputa solo la pagina Web di informazioni sull'errore come di seguito.
Server Error in '/' Application.
The given key was not present in the dictionary.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
Source Error: ...
Stack Trace: ...
Come è possibile impostare il debugger per interrompere l'errore?
Stai iniziando in modalità di debug (F5)? o in modalità non di debug (ctrl-F5)? –
Penso di avere avuto lo stesso problema. Controlla [qui] (http://stackoverflow.com/questions/14156666/visual-studio-does-not-break-on-unhandled-exceptions-when-debugging). – Schaliasos