justiceorjustus
justiceorjustus

Reputation: 1965

Visual Studio 2015 - Debug ASP.NET MVC source code immediately on POST

I'm having a problem with the default model binder being slow in my ASP.NET MVC web application on a specific controller. I'm looking to basically debug immediately when I hit the POST and see the ASP.NET MVC source code that is fired first (the model binder, etc.) before my controller's code.

How can I do this? I thought this should be an easy task but Google isn't turning anything up. I'm using Visual Studio 2015.

Upvotes: 0

Views: 326

Answers (1)

Jack Zhai
Jack Zhai

Reputation: 6436

To debug ASP.NET MVC source code, it was related some debugging options under TOOLS->Options->Debugging. enter image description here

It also was related to the Microsoft Symbols Server under TOOLS->Options->Debugging->Symbols.

So if you want to debug MVC source code or not, please enable/disable them, view the results.

Reference:

https://weblogs.asp.net/gunnarpeipman/stepping-into-asp-net-mvc-source-code-with-visual-studio-debugger

Upvotes: 1

Related Questions