Ask a questionAsk a question
 

AnswerLinq to sql visualizer problem

  • Friday, November 06, 2009 9:34 AMbivanise Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Friday, November 13, 2009 11:32 PMrchiodo - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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

All Replies

  • Friday, November 06, 2009 10:28 AMRoahn LuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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!
  • Monday, November 09, 2009 11:58 AMbivanise Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.
  • Monday, November 09, 2009 12:02 PMRoahn LuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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!
  • Friday, November 13, 2009 9:05 AMbivanise Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I restarted couple of times and nothing happened
  • Friday, November 13, 2009 11:32 PMrchiodo - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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