Tech Off Thread

8 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Debug Visualizer

Back to Forum: Tech Off
  • User profile image
    JoshB

    I'm not sure if this is possible but everytime I think that, someone comes a long and says, "oh we've been doing that for years." So here goes...

    I'm looking for a tool that while debugging, I can get a visual on the current objects in memory, the variables (or references) pointing to those objects and be able to see new objects being created, pointers being pointed at other objects and maybe even see an overview of your memory and how much each object is taking up.

    Any ideas? If there's not something out there, does .NET have any support in the bcl for something like it?

    Thanks in advance,
    Josh

  • User profile image
    Pon

    Read about Debugger Visualisers in the MSDN documentation.

  • User profile image
    littleguru

    Pon wrote:
    Read about Debugger Visualisers in the MSDN documentation.


    Actually he is wanting something else...

  • User profile image
    Pon

    Yeah, my bad, I must have been having a caffeine crash.

    If you're using .net, you could probably use the CLR profiler to capture lots of information like this. It shows some pretty interesting stuff like the memory layout and such.

  • User profile image
    littleguru

    Yeah - the profiler API would be find for that...

  • User profile image
    nightski

    If only the profiling api wasn't unmanaged, would be easier to whip up some WPF visualizations.  But it makes sense I guess.

  • User profile image
    littleguru

    nightski wrote:
    If only the profiling api wasn't unmanaged, would be easier to whip up some WPF visualizations.  But it makes sense I guess.


    DotTrace uses that API and is a managed application...

  • User profile image
    nightski

    littleguru wrote:
    
    nightski wrote:
    If only the profiling api wasn't unmanaged, would be easier to whip up some WPF visualizations.  But it makes sense I guess.


    DotTrace uses that API and is a managed application...


    Well you have to write the profiling component as an in process COM server.  Then you could use interop to interact with it.  Definately possible, just not something I could whip up in a few hours hehe.  Someone with more experience with COM maybe Smiley

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.