Visual Studio Developer Center >
Visual Studio Forums
>
Visual Studio Debugger
>
Linq to sql visualizer problem
Linq to sql visualizer problem
- I have downloaded the visualizer project from the internet. I followed the instructions, built up the project and get the dll and program debugger database.
Then I have copied them to C:\Documents and Settings\bivanise\My Documents\Visual Studio 2008\Visualizers and C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\Visualizers and nothing happened.
Please help.
Thanks
Answers
- How did you test it? The sample has this attribute on the visualizer:
[assembly: System.Diagnostics.DebuggerVisualizer(typeof(SqlServerQueryVisualizer.DialogChooser),
typeof(SqlServerQueryVisualizer.SourceChooser),
TargetTypeName = "System.Data.Linq.DataQuery`1, System.Data.Linq",
Description = "Linq to SQL Debugger Visualizer")]
The important part here being the TargetTypeName = "System.Data.Linq.DataQuery`1, System.Data.Linq". In order for the visualizer to appear in the watch window the type you are inspecting must match this type. So it won't show up without that.
Meaning this isn't a generic LINQ visualizer. It's just for System.Data.Linq.DataQuery'1- Marked As Answer byrchiodo - MSFTModeratorFriday, November 13, 2009 11:32 PM
All Replies
- Hello,
Visual Studio Debugger Visualizer is an add-in for Visual Studio. I'm not sure which Linq to SQL Debugger Visualizer did you download, but we could use it in the Visual Studio IDE. Please write some Linq query expression and test like this:
http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx
Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework! - I used the following link to get help how to use visualizer and followed the procedure how to install it. But for some reason the thing is not working.
- Hello,
If I may ask, did we close Visual Studio after we copied the dll to the right folder? VS will load the Visualizer after we restart it.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework! - I restarted couple of times and nothing happened
- How did you test it? The sample has this attribute on the visualizer:
[assembly: System.Diagnostics.DebuggerVisualizer(typeof(SqlServerQueryVisualizer.DialogChooser),
typeof(SqlServerQueryVisualizer.SourceChooser),
TargetTypeName = "System.Data.Linq.DataQuery`1, System.Data.Linq",
Description = "Linq to SQL Debugger Visualizer")]
The important part here being the TargetTypeName = "System.Data.Linq.DataQuery`1, System.Data.Linq". In order for the visualizer to appear in the watch window the type you are inspecting must match this type. So it won't show up without that.
Meaning this isn't a generic LINQ visualizer. It's just for System.Data.Linq.DataQuery'1- Marked As Answer byrchiodo - MSFTModeratorFriday, November 13, 2009 11:32 PM


