1

If this is possible, please could someone let me know how I can either set a breakpoint on request validation in .NET or view errors thrown by it?

The request validation is happening during an AJAX request from one of my views but I've not been able to view the errors that are being passed back (It's happening, as expected when I attempt to post HTML and javascript) But I like being able to dig a bit and view the messages that are being produced.

Thanks

BenM
  • 4,218
  • 2
  • 31
  • 58

1 Answers1

1

Debugging request validation should be possible if you download the MVC source code from here, and then enable debugging on it in Visual Studio. Information on how to do that can be found here.

nforss
  • 1,258
  • 1
  • 17
  • 31
  • Looks like a bit of a treasure trove for me to get into! Thanks. – BenM Sep 11 '13 at 20:07
  • There's nothing to download for the MVC project. All releases are empty. Can you please explain in your answer what exactly I need to do to debug MVC? VS 2010 (MVC 4.0) or 2013 (5.2.3) are fine. – ygoe Feb 24 '15 at 15:40