[Lldb-commits] [PATCH] D96623: [lldb-vscode] Fix lldb init file stdout issue

2021-02-16 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. I added Jim and Pavel to get some more feedback. The main issue is the Visual Studio Code debug adaptors like lldb-vscode receive and send packets on STDIN and STDOUT. The debugger is created during the "initialize" request which expects a response. If the debugger tri

[Lldb-commits] [PATCH] D96623: [lldb-vscode] Fix lldb init file stdout issue

2021-02-16 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. After thinking about this a bit more, it seems a mistake that we can't change the file handles _prior_ to sourcing the init files. I have proposed one solution in the inline comments to create a new SBDebugger::Create() method that takes the input output and error file

[Lldb-commits] [PATCH] D96623: [lldb-vscode] Fix lldb init file stdout issue

2021-02-12 Thread jeffrey tan via Phabricator via lldb-commits
yinghuitan created this revision. yinghuitan added reviewers: clayborg, aadsm. yinghuitan requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits. VScode DAP client uses stdout to receive protocol message. This means any stdout/stderr from debugger