1

I am very familiar with WinDbg windows debugger and I like to list symbols (global variables) and all memory content.

How do I do that in Visual Studio debugger when debugging a .NET application. What if I want to see the contents of ServiceProvider or some global dependency injection container during runtime?

I have breakpoint in runtime but I can only see local variables and values and have no clue how to check container object.

Thanks

Saher Ahwal
  • 9,015
  • 32
  • 84
  • 152

1 Answers1

0

When you under visual studio debug, you can enter Debug-->Windows-->Modules, and then you can check all the symbol files in that window.

enter image description here

If you want to check the memory content, you can use the Diagnostic Tools.

Under Debug, first click the camera icon to take Snapshot and the memory info about your project is under there.

enter image description here

Also, you can check Disassembly window under Debug-->Windows to check the info.

Besides, you can also use memory window and here is a similar issue.

Mr Qian
  • 21,064
  • 1
  • 31
  • 41