================
@@ -237,6 +237,7 @@ contain the following key/value pairs:
 | **stopOnEntry**                   | boolean     |     | Whether to stop 
program immediately after launching.
 | **runInTerminal** (deprecated)    | boolean     |     | Launch the program 
inside an integrated terminal in the IDE. Useful for debugging interactive 
command line programs.
 | **console**                       | string      |     | Specify where to 
launch the program: internal console (`internalConsole`), integrated terminal 
(`integratedTerminal`) or external terminal (`externalTerminal`). Supported 
from lldb-dap 21.0 version.
+| **stdio**                         | [string]    |     | Destination for 
program stdio streams (0 - stdin, 1 - stdout, 2 - stderr, ...). Using `null` 
value means no redirection. Supported from lldb-dap 22.0 version.
----------------
walter-erquinigo wrote:

Could you pretty much include all the contents from here

```
The stdio property is a list of redirection targets for each of the debuggee's 
stdio streams:

null value will cause redirect to the default debug session terminal (as 
specified by the terminal launch property),
"/some/path" will cause the stream to be redirected to the specified file, pipe 
or a TTY device*,
if you provide less than 3 values, the list will be padded to 3 entries using 
the last provided value,
you may specify more than three values, in which case additional file 
descriptors will be created (4, 5, etc.)
Examples:

"stdio": [null, "log.txt", null] - connect stdin and stderr to the default 
terminal, while sending stdout to "log.txt",
"stdio": ["input.txt", "log.txt"] - connect stdin to "input.txt", while sending 
both stdout and stderr to "log.txt",
"stdio": null - connect all three streams to the default terminal.
```
? That will be very clear

https://github.com/llvm/llvm-project/pull/158609
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to