Added showDevDebugOutput option to debug GDB calls
This commit is contained in:
parent
e7c15f0d71
commit
640abf822b
5 changed files with 51 additions and 7 deletions
|
|
@ -13,6 +13,7 @@ export interface LaunchRequestArguments {
|
|||
autorun: string[];
|
||||
ssh: SSHArguments;
|
||||
printCalls: boolean;
|
||||
showDevDebugOutput: boolean;
|
||||
}
|
||||
|
||||
export interface AttachRequestArguments {
|
||||
|
|
@ -23,6 +24,7 @@ export interface AttachRequestArguments {
|
|||
remote: boolean;
|
||||
autorun: string[];
|
||||
printCalls: boolean;
|
||||
showDevDebugOutput: boolean;
|
||||
}
|
||||
|
||||
class GDBDebugSession extends MI2DebugSession {
|
||||
|
|
@ -47,6 +49,7 @@ class GDBDebugSession 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;
|
||||
|
|
@ -113,6 +116,7 @@ class GDBDebugSession extends MI2DebugSession {
|
|||
this.isSSH = false;
|
||||
this.debugReady = false;
|
||||
this.miDebugger.printCalls = !!args.printCalls;
|
||||
this.miDebugger.debugOutput = !!args.showDevDebugOutput;
|
||||
if (args.remote) {
|
||||
this.miDebugger.connect(args.cwd, args.executable, args.target).then(() => {
|
||||
if (args.autorun)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue