public BreakProcessHelper(DnDebugger debugger, BreakProcessKind type, string filename) { this.debugger = debugger ?? throw new ArgumentNullException(nameof(debugger)); this.type = type; this.filename = filename; AddStartupBreakpoint(); }
public BreakProcessHelper(DnDebugger debugger, BreakProcessKind type, string filename, string?managedDllFilename) { this.debugger = debugger ?? throw new ArgumentNullException(nameof(debugger)); this.type = type; this.filename = Path.GetFullPath(managedDllFilename ?? filename); AddStartupBreakpoint(); }
static DBG.BreakProcessKind Convert(BreakProcessKind kind) { switch (kind) { case BreakProcessKind.None: return(DBG.BreakProcessKind.None); case BreakProcessKind.CreateProcess: return(DBG.BreakProcessKind.CreateProcess); case BreakProcessKind.CreateAppDomain: return(DBG.BreakProcessKind.CreateAppDomain); case BreakProcessKind.LoadModule: return(DBG.BreakProcessKind.LoadModule); case BreakProcessKind.LoadClass: return(DBG.BreakProcessKind.LoadClass); case BreakProcessKind.CreateThread: return(DBG.BreakProcessKind.CreateThread); case BreakProcessKind.ExeLoadModule: return(DBG.BreakProcessKind.ExeLoadModule); case BreakProcessKind.ExeLoadClass: return(DBG.BreakProcessKind.ExeLoadClass); case BreakProcessKind.ModuleCctorOrEntryPoint: return(DBG.BreakProcessKind.ModuleCctorOrEntryPoint); case BreakProcessKind.EntryPoint: return(DBG.BreakProcessKind.EntryPoint); default: Debug.Fail("Invalid break kind"); return((DBG.BreakProcessKind)(-1)); } }
public BreakProcessHelper(DnDebugger debugger, BreakProcessKind type, string filename) { if (debugger == null) throw new ArgumentNullException(); this.debugger = debugger; this.type = type; this.filename = filename; AddStartupBreakpoint(); }
public BreakProcessHelper(DnDebugger debugger, BreakProcessKind type, string filename, bool isAppHost) { this.debugger = debugger ?? throw new ArgumentNullException(nameof(debugger)); this.type = type; filename1 = filename; if (isAppHost) filename2 = Path.ChangeExtension(filename, "dll"); AddStartupBreakpoint(); }
public bool Start(string filename, string cmdLine, string cwd, BreakProcessKind breakKind) { var options = new DebugOptions { Filename = filename, CommandLine = cmdLine, CurrentDirectory = cwd, BreakProcessKind = breakKind, }; return(Start(options)); }
public bool StartCoreCLR(string filename, string cmdLine, string cwd, BreakProcessKind breakKind, string hostFilename, string hostCommandLine) { var options = new CoreCLRDebugOptions(); options.Options.Filename = filename; options.Options.CommandLine = cmdLine; options.Options.CurrentDirectory = cwd; options.Options.BreakProcessKind = breakKind; options.HostFilename = hostFilename; options.HostCommandLine = hostCommandLine; return(StartCoreCLR(options)); }
static DBG.BreakProcessKind Convert(BreakProcessKind kind) { switch (kind) { case BreakProcessKind.None: return DBG.BreakProcessKind.None; case BreakProcessKind.CreateProcess: return DBG.BreakProcessKind.CreateProcess; case BreakProcessKind.CreateAppDomain: return DBG.BreakProcessKind.CreateAppDomain; case BreakProcessKind.LoadModule: return DBG.BreakProcessKind.LoadModule; case BreakProcessKind.LoadClass: return DBG.BreakProcessKind.LoadClass; case BreakProcessKind.CreateThread: return DBG.BreakProcessKind.CreateThread; case BreakProcessKind.ExeLoadModule: return DBG.BreakProcessKind.ExeLoadModule; case BreakProcessKind.ExeLoadClass: return DBG.BreakProcessKind.ExeLoadClass; case BreakProcessKind.ModuleCctorOrEntryPoint: return DBG.BreakProcessKind.ModuleCctorOrEntryPoint; case BreakProcessKind.EntryPoint: return DBG.BreakProcessKind.EntryPoint; default: Debug.Fail("Invalid break kind"); return (DBG.BreakProcessKind)(-1); } }
public DebugProcessOptions(CLRTypeDebugInfo info) { CLRTypeDebugInfo = info; DebugOptions = new DebugOptions(); BreakProcessKind = BreakProcessKind.None; }
public DebugProcessOptions(CLRTypeDebugInfo info) { this.CLRTypeDebugInfo = info; this.DebugOptions = new DebugOptions(); this.BreakProcessKind = BreakProcessKind.None; }
public bool StartCoreCLR(string filename, string cmdLine, string cwd, BreakProcessKind breakKind, string hostFilename, string hostCommandLine) { var options = new CoreCLRDebugOptions(); options.Options.Filename = filename; options.Options.CommandLine = cmdLine; options.Options.CurrentDirectory = cwd; options.Options.BreakProcessKind = breakKind; options.HostFilename = hostFilename; options.HostCommandLine = hostCommandLine; return StartCoreCLR(options); }
public bool Start(string filename, string cmdLine, string cwd, BreakProcessKind breakKind) { var options = new DebugOptions { Filename = filename, CommandLine = cmdLine, CurrentDirectory = cwd, BreakProcessKind = breakKind, }; return Start(options); }