This commit is contained in:
WebFreak001 2017-04-14 18:26:40 +02:00
commit a21e2e65af
6 changed files with 47 additions and 11 deletions

View file

@ -8,6 +8,7 @@ export interface LaunchRequestArguments {
cwd: string;
target: string;
magomipath: string;
env: any;
debugger_args: string[];
arguments: string;
autorun: string[];
@ -19,6 +20,7 @@ export interface AttachRequestArguments {
cwd: string;
target: string;
magomipath: string;
env: any;
debugger_args: string[];
executable: string;
autorun: string[];
@ -45,7 +47,7 @@ class MagoDebugSession extends MI2DebugSession {
}
protected launchRequest(response: DebugProtocol.LaunchResponse, args: LaunchRequestArguments): void {
this.miDebugger = new MI2_Mago(args.magomipath || "mago-mi", ["-q"], args.debugger_args);
this.miDebugger = new MI2_Mago(args.magomipath || "mago-mi", ["-q"], args.debugger_args, args.env);
this.initDebugger();
this.quit = false;
this.attached = false;
@ -74,7 +76,7 @@ class MagoDebugSession extends MI2DebugSession {
}
protected attachRequest(response: DebugProtocol.AttachResponse, args: AttachRequestArguments): void {
this.miDebugger = new MI2_Mago(args.magomipath || "mago-mi", [], args.debugger_args);
this.miDebugger = new MI2_Mago(args.magomipath || "mago-mi", [], args.debugger_args, args.env);
this.initDebugger();
this.quit = false;
this.attached = true;