Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top