Fix #98
This commit is contained in:
parent
edfac8eb1a
commit
a21e2e65af
6 changed files with 47 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue