Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 1.17 KB

DumpProcessing.md

File metadata and controls

35 lines (32 loc) · 1.17 KB

Creating a new project that uses debugger engine

  • Create a new .NET project (you can use Console Application)
  • Add NuGet package SharpDebug
  • Add initialization code:
using SharpDebug;

DebuggerInitialization.OpenDumpFile("path_to_dump_file", "symbol_path;srv*");
// After this line, you can execute any code that can be executed in the script

Creating a new project that uses scripting and UI

  • Create a new .NET project (you can use Console Application)
  • Add NuGet package SharpDebug
  • Add NuGet package SharpDebug.UI
  • Add initialization code:
SharpDebug.DebuggerInitialization.OpenDumpFile("path_to_dump_file", "symbol_path;srv*");
SharpDebug.UI.InteractiveWindow.ShowModalWindow();

Instead of opening interactive window, you can execute scripts:

SharpDebug.ScriptExecution.Execute("path_to_script");

Or execute interactive commands with

var interactiveExecution = new SharpDebug.InteractiveExecution();
interactiveExecution.Interpret("<C# code>");

Sample project

Please take a look at SharpDebug.Engine.Test. It shows how to:

  • Open a dump
  • Execute some C# code against it
  • Execute C# script