@@ -97,7 +97,7 @@ function createLaunchString(name: string, type: string, executable: string): str
9797"stopAtEntry": false,
9898"cwd": "$\{fileDirname\}",
9999"environment": [],
100- ${ type === "cppdbg" ? `"externalConsole": false` : `"console": "externalTerminal"` }
100+ ${ type === "cppdbg" ? `"externalConsole": false` : `"console": "externalTerminal"` }
101101` ;
102102}
103103
@@ -106,6 +106,7 @@ function createAttachString(name: string, type: string, executable: string): str
106106"name": "${ name } ",
107107"type": "${ type } ",
108108"request": "attach",{0}
109+ "waitFor": false,
109110` , [ type === "cppdbg" ? `${ os . EOL } "program": "${ localize ( "enter.program.name" , "enter program name, for example {0}" , "$\{workspaceFolder\}" + "/" + executable ) . replace ( / " / g, '' ) } ",` : "" ] ) ;
110111}
111112
@@ -114,11 +115,13 @@ function createRemoteAttachString(name: string, type: string, executable: string
114115"name": "${ name } ",
115116"type": "${ type } ",
116117"request": "attach",
118+ "waitFor": false,
117119"program": "${ localize ( "enter.program.name" , "enter program name, for example {0}" , "$\{workspaceFolder\}" + "/" + executable ) . replace ( / " / g, '' ) } ",
118120"processId": "$\{command:pickRemoteProcess\}"
119121` ;
120122}
121123
124+
122125function createPipeTransportString ( pipeProgram : string , debuggerProgram : string , pipeArgs : string [ ] = [ ] ) : string {
123126 return `
124127"pipeTransport": {
@@ -164,7 +167,7 @@ export class MIConfigurations extends Configuration {
164167\t${ indentJsonString ( createLaunchString ( name , this . miDebugger , this . executable ) ) } ,
165168\t"MIMode": "${ this . MIMode } "{0}{1}
166169}` , [ this . miDebugger === "cppdbg" && os . platform ( ) === "win32" ? `,${ os . EOL } \t"miDebuggerPath": "/path/to/gdb"` : "" ,
167- this . additionalProperties ? `,${ os . EOL } \t${ indentJsonString ( this . additionalProperties ) } ` : "" ] ) ;
170+ this . additionalProperties ? `,${ os . EOL } \t${ indentJsonString ( this . additionalProperties ) } ` : "" ] ) ;
168171
169172 return {
170173 "label" : configPrefix + name ,
@@ -182,7 +185,7 @@ export class MIConfigurations extends Configuration {
182185\t${ indentJsonString ( createAttachString ( name , this . miDebugger , this . executable ) ) }
183186\t"MIMode": "${ this . MIMode } "{0}{1}
184187}` , [ this . miDebugger === "cppdbg" && os . platform ( ) === "win32" ? `,${ os . EOL } \t"miDebuggerPath": "/path/to/gdb"` : "" ,
185- this . additionalProperties ? `,${ os . EOL } \t${ indentJsonString ( this . additionalProperties ) } ` : "" ] ) ;
188+ this . additionalProperties ? `,${ os . EOL } \t${ indentJsonString ( this . additionalProperties ) } ` : "" ] ) ;
186189
187190 return {
188191 "label" : configPrefix + name ,
0 commit comments