Added showDevDebugOutput option to debug GDB calls

This commit is contained in:
WebFreak001 2016-08-08 17:56:20 +02:00
commit 640abf822b
5 changed files with 51 additions and 7 deletions

View file

@ -12,6 +12,7 @@ export interface LaunchRequestArguments {
autorun: string[];
ssh: SSHArguments;
printCalls: boolean;
showDevDebugOutput: boolean;
}
export interface AttachRequestArguments {
@ -21,6 +22,7 @@ export interface AttachRequestArguments {
executable: string;
autorun: string[];
printCalls: boolean;
showDevDebugOutput: boolean;
}
class LLDBDebugSession extends MI2DebugSession {
@ -43,6 +45,7 @@ class LLDBDebugSession extends MI2DebugSession {
this.crashed = false;
this.debugReady = false;
this.miDebugger.printCalls = !!args.printCalls;
this.miDebugger.debugOutput = !!args.showDevDebugOutput;
if (args.ssh !== undefined) {
if (args.ssh.forwardX11 === undefined)
args.ssh.forwardX11 = true;
@ -101,6 +104,7 @@ class LLDBDebugSession extends MI2DebugSession {
this.isSSH = false;
this.debugReady = false;
this.miDebugger.printCalls = !!args.printCalls;
this.miDebugger.debugOutput = !!args.showDevDebugOutput;
this.miDebugger.attach(args.cwd, args.executable, args.target).then(() => {
if (args.autorun)
args.autorun.forEach(command => {