12

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 was not able to see any of the parameters. Is it possible? If not, it would be a total let down.

Greg R
  • 1,670
  • 4
  • 26
  • 46

2 Answers2

8

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:

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

Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670
-1

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.

  • 2
    The question is about parameters in SQL queries, not method parameters. SQL parameter values are not collected by IntelliTrace even if you turn on Call Information – sinelaw Aug 21 '13 at 15:36