Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I debug EF? (analyze SQL queries)

How can I debug the Entity Framework? Can I see which queries it is actually trying to execute to the SQL server, to troubleshoot issues?

like image 865
Mathias Lykkegaard Lorenzen Avatar asked Oct 02 '11 17:10

Mathias Lykkegaard Lorenzen


1 Answers

Check out the MVC Mini Profiler: http://code.google.com/p/mvc-mini-profiler/

It's very lightweight, doesn't intrude on your app, and is easily removed if need be. Plus, Stack Overflow uses it.

like image 193
CassOnMars Avatar answered Sep 21 '22 07:09

CassOnMars