BadScript 2
Loading...
Searching...
No Matches
BadScript2.Debugger.BadDebuggerExtensions Class Reference

Debugger Extensions for the BadScript Runtime. More...

Static Public Member Functions

static BadRuntime UseConsoleDebugger (this BadRuntime runtime)
 Configures the Runtime to use the Console Debugger.
 
static BadRuntime UseDebuggerExtensions (this BadRuntime runtime)
 Configures the Runtime to use the Debugger Extensions.
 
static BadRuntime UseScriptDebugger (this BadRuntime runtime, string? debuggerPath=null)
 Configures the Runtime to use the Script Debugger.
 

Detailed Description

Debugger Extensions for the BadScript Runtime.

Definition at line 8 of file BadDebuggerExtensions.cs.

Member Function Documentation

◆ UseConsoleDebugger()

static BadRuntime BadScript2.Debugger.BadDebuggerExtensions.UseConsoleDebugger ( this BadRuntime  runtime)
static

Configures the Runtime to use the Console Debugger.

Parameters
runtimeThe Runtime to configure
Returns
The configured Runtime

Definition at line 15 of file BadDebuggerExtensions.cs.

16 {
17 return runtime
18 .UseDebuggerExtensions()
19 .UseDebugger(new BadConsoleDebugger());
20 }

◆ UseDebuggerExtensions()

static BadRuntime BadScript2.Debugger.BadDebuggerExtensions.UseDebuggerExtensions ( this BadRuntime  runtime)
static

Configures the Runtime to use the Debugger Extensions.

Parameters
runtimeThe Runtime to configure
Returns
The configured Runtime

Definition at line 27 of file BadDebuggerExtensions.cs.

28 {
29 return runtime.UseExtension<BadScriptDebuggerExtension>();
30 }
Implements Interop Extensions for the Debugger Objects.

◆ UseScriptDebugger()

static BadRuntime BadScript2.Debugger.BadDebuggerExtensions.UseScriptDebugger ( this BadRuntime  runtime,
string?  debuggerPath = null 
)
static

Configures the Runtime to use the Script Debugger.

Parameters
runtimeThe Runtime to configure
debuggerPathThe File Path to the Debugger
Returns
The configured Runtime

Definition at line 38 of file BadDebuggerExtensions.cs.

39 {
40 return runtime.UseDebuggerExtensions()
41 .UseDebugger(debuggerPath == null ? new BadScriptDebugger(runtime) : new BadScriptDebugger(runtime, debuggerPath));
42 }

The documentation for this class was generated from the following file: