开发者

IntelliTrace and ADO.NET parameter values

I'm trying to debug Entity Framework, and I can see the DB calls, but parameter values are not shown. I tried a bunch of options, but wa开发者_如何学编程s not able to see any of the parameters. Is it possible? If not, it would be a total let down.


As I know IntelliTrace doesn't show parameters for queries. It shows only command text. You need some external profiler to see queries with parameters. You can use SQL Profiler directly or try tools like:

  • EF Tracing Wrapper
  • Huagati Query Profiler
  • EFProf
  • ORM Profiler
  • In case of ASP.NET MVC you can also use MVC mini profiler

More about profiling options can be also found in this article.


If you have your IntelliTrace settings configured to collect call information - Tools -> Options -> IntelliTrace -> Events and Call Information then IntelliTrace will collect the values of parameters passed into methods in your code.

If the values that you are interested in are passed as method parameters at some point you should be able to step back through your code to inspect those values. Keep the locals window open and you can see the historical values that IntelliTrace collects as you navigate backward.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜