Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No connection could be made... #323

Closed
fdncred opened this issue Jun 8, 2020 · 23 comments
Closed

No connection could be made... #323

fdncred opened this issue Jun 8, 2020 · 23 comments
Labels
cause:Unclear The cause of the issue is unclear and/or I was not able to reproduce it. help wanted I am not likely to be able to investigate this issue or implement a solution. Please help! stale The issue will be closed, unless new information allowing to make progress comes up soon.

Comments

@fdncred
Copy link

fdncred commented Jun 8, 2020

OS: Windows 10 2004
VSCode version: 1.46.0-insider
Extension version: 1.5.3
Toolchain version: stable-x86_64-pc-windows-msvc (default), rustc 1.43.1 (8d69840ab 2020-05-04)
Build target: stable-x86_64-pc-windows-msvc
Python version: Mini-conda 3.7.6, set as "lldb.adapterEnv": { "PYTHONHOME": "D:\Python" }

I've run this a dozen times, the port always changes. Google thinks something is blocking the port or there's nothing listening on the other side. I have completely disabled Windows firewall. I'm not sure what else could be blocking it. Any ideas how to fix this?

Toward the bottom I can see the launch banner of my application (Welcome to Nushell 0.14.1 (type 'help' for more info)) but then for some reason everything appears to shut down.

c:\Users\username\.vscode-insiders\extensions\vadimcn.vscode-lldb-1.5.3\adapter\codelldb.exe terminal-agent --port=6766
Error: Os { code: 10061, kind: ConnectionRefused, message: "No connection could be made because the target machine actively refused it." }
Debug log
Running `cargo build --bin=nu --package=nu --message-format=json`...
    Finished dev [unoptimized + debuginfo] target(s) in 0.79s
Raw artifacts:
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe',
  name: 'nu',
  kind: 'bin'
}
Filtered artifacts: 
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe',
  name: 'nu',
  kind: 'bin'
}
configuration: {
  type: 'lldb',
  request: 'launch',
  name: "Debug executable 'nu'",
  args: [],
  cwd: '${workspaceFolder}',
  relativePathBase: 'c:\\Users\\username\\source\\repos\\nushell',
  program: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe',
  sourceLanguages: [ 'rust' ]
}
liblldb: c:\Users\username\.vscode-insiders\extensions\vadimcn.vscode-lldb-1.5.3\lldb\bin\liblldb.dll
libpython: D:\Python\python3.dll
environment: { PYTHONHOME: 'D:\\Python' }
params: { sourceLanguages: [ 'rust' ] }
Listening on port 6895
[2020-06-08T20:22:55Z DEBUG codelldb] New debug session
INFO(Python) 15:22:55 rust: Initializing, module name=rust
DEBUG(Python) 15:22:55 rust: attaching summary get_tuple_summary to "^\(.*\)$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StrSliceSynthProvider to "&str", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StrSliceSynthProvider to "&str", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching synthetic StrSliceSynthProvider to "str*", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StrSliceSynthProvider to "str*", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching synthetic StdStringSynthProvider to "collections::string::String", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdStringSynthProvider to "collections::string::String", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching synthetic StdStringSynthProvider to "alloc::string::String", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdStringSynthProvider to "alloc::string::String", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching synthetic StdVectorSynthProvider to "^collections::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdVectorSynthProvider to "^collections::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdVectorSynthProvider to "^alloc::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdVectorSynthProvider to "^alloc::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic SliceSynthProvider to "^&(mut\s*)?\[.*\]$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_SliceSynthProvider to "^&(mut\s*)?\[.*\]$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic SliceSynthProvider to "^slice<.+>.*$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_SliceSynthProvider to "^slice<.+>.*$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdCStringSynthProvider to "std::ffi::c_str::CString", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdCStringSynthProvider to "std::ffi::c_str::CString", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching synthetic StdCStrSynthProvider to "std::ffi::c_str::CStr", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdCStrSynthProvider to "std::ffi::c_str::CStr", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching synthetic StdOsStringSynthProvider to "std::ffi::os_str::OsString", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdOsStringSynthProvider to "std::ffi::os_str::OsString", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching synthetic StdOsStrSynthProvider to "std::ffi::os_str::OsStr", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdOsStrSynthProvider to "std::ffi::os_str::OsStr", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching synthetic StdPathBufSynthProvider to "std::path::PathBuf", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdPathBufSynthProvider to "std::path::PathBuf", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching synthetic StdPathSynthProvider to "std::path::Path", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdPathSynthProvider to "std::path::Path", is_regex=False
DEBUG(Python) 15:22:55 rust: attaching synthetic StdRcSynthProvider to "^alloc::rc::Rc<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdRcSynthProvider to "^alloc::rc::Rc<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdRcSynthProvider to "^alloc::rc::Weak<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdRcSynthProvider to "^alloc::rc::Weak<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdArcSynthProvider to "^alloc::(sync|arc)::Arc<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdArcSynthProvider to "^alloc::(sync|arc)::Arc<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdArcSynthProvider to "^alloc::(sync|arc)::Weak<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdArcSynthProvider to "^alloc::(sync|arc)::Weak<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdMutexSynthProvider to "^std::sync::mutex::Mutex<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdMutexSynthProvider to "^std::sync::mutex::Mutex<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdCellSynthProvider to "^core::cell::Cell<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdCellSynthProvider to "^core::cell::Cell<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdRefCellSynthProvider to "^core::cell::RefCell<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdRefCellSynthProvider to "^core::cell::RefCell<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdRefCellBorrowSynthProvider to "^core::cell::Ref<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdRefCellBorrowSynthProvider to "^core::cell::Ref<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdRefCellBorrowSynthProvider to "^core::cell::RefMut<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdRefCellBorrowSynthProvider to "^core::cell::RefMut<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdHashMapSynthProvider to "^std::collections::hash::map::HashMap<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdHashMapSynthProvider to "^std::collections::hash::map::HashMap<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdHashSetSynthProvider to "^std::collections::hash::set::HashSet<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdHashSetSynthProvider to "^std::collections::hash::set::HashSet<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdOptionSynthProvider to "^core::option::Option<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdOptionSynthProvider to "^core::option::Option<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdResultSynthProvider to "^core::result::Result<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdResultSynthProvider to "^core::result::Result<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching synthetic StdCowSynthProvider to "^alloc::borrow::Cow<.+>$", is_regex=True
DEBUG(Python) 15:22:55 rust: attaching summary _get_synth_summary_StdCowSynthProvider to "^alloc::borrow::Cow<.+>$", is_regex=True
[2020-06-08T20:22:55Z DEBUG codelldb::dap_codec] --> {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code - Insiders","adapterID":"lldb","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true},"type":"request","seq":1}
[2020-06-08T20:22:55Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"exceptionBreakpointFilters":[{"default":true,"filter":"rust_panic","label":"Rust: on panic"}],"supportTerminateDebuggee":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsEvaluateForHovers":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsLogPoints":true,"supportsRestartFrame":true,"supportsSetVariable":true}}
[2020-06-08T20:22:55Z DEBUG codelldb::dap_codec] --> {"command":"launch","arguments":{"type":"lldb","request":"launch","name":"Debug executable 'nu'","args":[],"cwd":"C:\\Users\\username\\source\\repos\\nushell","relativePathBase":"c:\\Users\\username\\source\\repos\\nushell","program":"c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe","sourceLanguages":["rust"],"_adapterSettings":{"displayFormat":"auto","showDisassembly":"auto","dereferencePointers":true,"suppressMissingSourceFiles":true,"evaluationTimeout":5,"consoleMode":"commands","sourceLanguages":null,"terminalPromptClear":["\n"]},"__sessionId":"69a7d8b1-9b5f-41cb-a11f-5621abc42658"},"type":"request","seq":2}
[2020-06-08T20:22:55Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":1,"event":"initialized"}
[2020-06-08T20:22:55Z DEBUG codelldb::dap_codec] <-- {"type":"request","seq":2,"command":"runInTerminal","arguments":{"args":["\n"],"cwd":"","kind":"integrated","title":"Debug executable 'nu'"}}
[2020-06-08T20:22:55Z DEBUG codelldb::dap_codec] --> {"command":"setBreakpoints","arguments":{"source":{"name":"external.rs","path":"c:\\Users\\username\\source\\repos\\nushell\\crates\\nu-cli\\src\\commands\\classified\\external.rs"},"lines":[181],"breakpoints":[{"line":181}],"sourceModified":false},"type":"request","seq":3}
[2020-06-08T20:22:56Z DEBUG codelldb::dap_codec] --> {"type":"response","seq":4,"command":"runInTerminal","request_seq":2,"success":true,"body":{"shellProcessId":30212}}
error: nu.exe :: Class 'nu_protocol::hir::Binary' has a member 'left' of type 'nu_protocol::hir::SpannedExpression' which does not have a complete definition.
error: nu.exe :: Class 'nu_protocol::hir::Expression' has a member '__0' of type 'alloc::vec::Vec' which does not have a complete definition.
error: nu.exe :: Class 'nu_source::meta::Spanned' has a member 'item' of type 'nu_protocol::value::primitive::Primitive' which does not have a complete definition.
error: nu.exe :: Class 'indexmap::Bucket' has a member 'value' of type 'nu_protocol::value::Value' which does not have a complete definition.
[2020-06-08T20:23:01Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"line":181,"message":"Locations: 1","verified":true}]}}
[2020-06-08T20:23:01Z DEBUG codelldb::dap_codec] <-- {"type":"request","seq":3,"command":"runInTerminal","arguments":{"args":["c:\\Users\\username\\.vscode-insiders\\extensions\\vadimcn.vscode-lldb-1.5.3\\adapter\\codelldb.exe","terminal-agent","--port=6897"],"cwd":"","kind":"integrated","title":"Debug executable 'nu'"}}
[2020-06-08T20:23:01Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":4,"event":"output","body":{"category":"stderr","output":"Failed to redirect stdio to a terminal. (Terminal agent did not respond within the allotted time.)\nDebuggee output will appear here.\n"}}
[2020-06-08T20:23:01Z DEBUG codelldb::dap_codec] --> {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5}
[2020-06-08T20:23:01Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":5,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
[2020-06-08T20:23:01Z DEBUG codelldb::dap_codec] --> {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":6}
[2020-06-08T20:23:01Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":6,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]}}
[2020-06-08T20:23:01Z DEBUG codelldb::dap_codec] --> {"command":"setExceptionBreakpoints","arguments":{"filters":["rust_panic"]},"type":"request","seq":7}
[2020-06-08T20:23:01Z DEBUG codelldb::dap_codec] --> {"type":"response","seq":8,"command":"runInTerminal","request_seq":3,"success":true,"body":{"shellProcessId":30212}}
[2020-06-08T20:23:01Z ERROR codelldb::dap_session] Send error: runInTerminal(RunInTerminalResponseBody { process_id: None, shell_process_id: Some(30212) })
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":7,"success":true,"command":"setExceptionBreakpoints"}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] --> {"command":"configurationDone","type":"request","seq":9}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":9,"success":true,"command":"configurationDone"}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":5,"event":"output","body":{"output":"Launching: c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe\n"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":10}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":6,"event":"output","body":{"output":"Launched process 18252\n"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2,"success":true,"command":"launch"}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA97093B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA9709DB0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":10,"success":true,"command":"threads","body":{"threads":[{"id":2028,"name":"1: tid=2028"},{"id":15048,"name":"2: tid=15048"},{"id":15140,"name":"4: tid=15140"},{"id":18108,"name":"3: tid=18108"}]}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970A530 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {nu.exe}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970AE70 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntdll.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":7,"event":"module","body":{"module":{"addressRange":"7FF71C420000","id":"7FF71C420000","name":"nu.exe","path":"c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe","symbolFilePath":"c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970AC70 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntdll.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":8,"event":"module","body":{"module":{"addressRange":"7FFDF68B0000","id":"7FFDF68B0000","name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","symbolFilePath":"C:\\Windows\\System32\\ntdll.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970A270 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":9,"event":"module","body":{"module":{"addressRange":"7FFDF68B0000","id":"7FFDF68B0000","name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","symbolFilePath":"C:\\Windows\\System32\\ntdll.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970B970 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":10,"event":"module","body":{"module":{"addressRange":"7FFDF5960000","id":"7FFDF5960000","name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","symbolFilePath":"C:\\Windows\\System32\\kernel32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970B130 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {KernelBase.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":11,"event":"module","body":{"module":{"addressRange":"7FFDF5960000","id":"7FFDF5960000","name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","symbolFilePath":"C:\\Windows\\System32\\kernel32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970BB70 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {KernelBase.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":12,"event":"module","body":{"module":{"addressRange":"7FFDF4600000","id":"7FFDF4600000","name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","symbolFilePath":"C:\\Windows\\System32\\KernelBase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970BD70 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {apphelp.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":13,"event":"module","body":{"module":{"addressRange":"7FFDF4600000","id":"7FFDF4600000","name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","symbolFilePath":"C:\\Windows\\System32\\KernelBase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970B3F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {apphelp.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":14,"event":"module","body":{"module":{"addressRange":"7FFDF0AE0000","id":"7FFDF0AE0000","name":"apphelp.dll","path":"C:\\Windows\\System32\\apphelp.dll","symbolFilePath":"C:\\Windows\\System32\\apphelp.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970BCF0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {ws2_32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970B170 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {ws2_32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":15,"event":"module","body":{"module":{"addressRange":"7FFDF0AE0000","id":"7FFDF0AE0000","name":"apphelp.dll","path":"C:\\Windows\\System32\\apphelp.dll","symbolFilePath":"C:\\Windows\\System32\\apphelp.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970B370 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {rpcrt4.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":16,"event":"module","body":{"module":{"addressRange":"7FFDF6330000","id":"7FFDF6330000","name":"ws2_32.dll","path":"C:\\Windows\\System32\\ws2_32.dll","symbolFilePath":"C:\\Windows\\System32\\ws2_32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970B8B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {rpcrt4.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":17,"event":"module","body":{"module":{"addressRange":"7FFDF6330000","id":"7FFDF6330000","name":"ws2_32.dll","path":"C:\\Windows\\System32\\ws2_32.dll","symbolFilePath":"C:\\Windows\\System32\\ws2_32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970C7F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {ole32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":18,"event":"module","body":{"module":{"addressRange":"7FFDF6200000","id":"7FFDF6200000","name":"rpcrt4.dll","path":"C:\\Windows\\System32\\rpcrt4.dll","symbolFilePath":"C:\\Windows\\System32\\rpcrt4.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970D0F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {ole32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":19,"event":"module","body":{"module":{"addressRange":"7FFDF6200000","id":"7FFDF6200000","name":"rpcrt4.dll","path":"C:\\Windows\\System32\\rpcrt4.dll","symbolFilePath":"C:\\Windows\\System32\\rpcrt4.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970C2B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {ucrtbase.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":20,"event":"module","body":{"module":{"addressRange":"7FFDF5AC0000","id":"7FFDF5AC0000","name":"ole32.dll","path":"C:\\Windows\\System32\\ole32.dll","symbolFilePath":"C:\\Windows\\System32\\ole32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970CFB0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {ucrtbase.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":21,"event":"module","body":{"module":{"addressRange":"7FFDF5AC0000","id":"7FFDF5AC0000","name":"ole32.dll","path":"C:\\Windows\\System32\\ole32.dll","symbolFilePath":"C:\\Windows\\System32\\ole32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970CC30 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {combase.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":22,"event":"module","body":{"module":{"addressRange":"7FFDF44A0000","id":"7FFDF44A0000","name":"ucrtbase.dll","path":"C:\\Windows\\System32\\ucrtbase.dll","symbolFilePath":"C:\\Windows\\System32\\ucrtbase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970C8F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {combase.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":23,"event":"module","body":{"module":{"addressRange":"7FFDF44A0000","id":"7FFDF44A0000","name":"ucrtbase.dll","path":"C:\\Windows\\System32\\ucrtbase.dll","symbolFilePath":"C:\\Windows\\System32\\ucrtbase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970CD30 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":24,"event":"module","body":{"module":{"addressRange":"7FFDF5D00000","id":"7FFDF5D00000","name":"combase.dll","path":"C:\\Windows\\System32\\combase.dll","symbolFilePath":"C:\\Windows\\System32\\combase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970CFF0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":25,"event":"module","body":{"module":{"addressRange":"7FFDF5D00000","id":"7FFDF5D00000","name":"combase.dll","path":"C:\\Windows\\System32\\combase.dll","symbolFilePath":"C:\\Windows\\System32\\combase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970C430 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {win32u.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970D730 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {win32u.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":26,"event":"module","body":{"module":{"addressRange":"7FFDF5870000","id":"7FFDF5870000","name":"gdi32.dll","path":"C:\\Windows\\System32\\gdi32.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970DFB0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32full.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":27,"event":"module","body":{"module":{"addressRange":"7FFDF5870000","id":"7FFDF5870000","name":"gdi32.dll","path":"C:\\Windows\\System32\\gdi32.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970DBF0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32full.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":28,"event":"module","body":{"module":{"addressRange":"7FFDF4140000","id":"7FFDF4140000","name":"win32u.dll","path":"C:\\Windows\\System32\\win32u.dll","symbolFilePath":"C:\\Windows\\System32\\win32u.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970DE30 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcp_win.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":29,"event":"module","body":{"module":{"addressRange":"7FFDF4140000","id":"7FFDF4140000","name":"win32u.dll","path":"C:\\Windows\\System32\\win32u.dll","symbolFilePath":"C:\\Windows\\System32\\win32u.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970DF30 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcp_win.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970D670 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {user32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":30,"event":"module","body":{"module":{"addressRange":"7FFDF4030000","id":"7FFDF4030000","name":"gdi32full.dll","path":"C:\\Windows\\System32\\gdi32full.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32full.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970D1B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {user32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":31,"event":"module","body":{"module":{"addressRange":"7FFDF4030000","id":"7FFDF4030000","name":"gdi32full.dll","path":"C:\\Windows\\System32\\gdi32full.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32full.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970D1F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {advapi32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":32,"event":"module","body":{"module":{"addressRange":"7FFDF4400000","id":"7FFDF4400000","name":"msvcp_win.dll","path":"C:\\Windows\\System32\\msvcp_win.dll","symbolFilePath":"C:\\Windows\\System32\\msvcp_win.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970D3B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {advapi32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":33,"event":"module","body":{"module":{"addressRange":"7FFDF4400000","id":"7FFDF4400000","name":"msvcp_win.dll","path":"C:\\Windows\\System32\\msvcp_win.dll","symbolFilePath":"C:\\Windows\\System32\\msvcp_win.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970D7B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcrt.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":34,"event":"module","body":{"module":{"addressRange":"7FFDF6060000","id":"7FFDF6060000","name":"user32.dll","path":"C:\\Windows\\System32\\user32.dll","symbolFilePath":"C:\\Windows\\System32\\user32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970EBB0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcrt.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":35,"event":"module","body":{"module":{"addressRange":"7FFDF6060000","id":"7FFDF6060000","name":"user32.dll","path":"C:\\Windows\\System32\\user32.dll","symbolFilePath":"C:\\Windows\\System32\\user32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970E630 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {sechost.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":36,"event":"module","body":{"module":{"addressRange":"7FFDF5C50000","id":"7FFDF5C50000","name":"advapi32.dll","path":"C:\\Windows\\System32\\advapi32.dll","symbolFilePath":"C:\\Windows\\System32\\advapi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970E1B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {sechost.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":37,"event":"module","body":{"module":{"addressRange":"7FFDF5C50000","id":"7FFDF5C50000","name":"advapi32.dll","path":"C:\\Windows\\System32\\advapi32.dll","symbolFilePath":"C:\\Windows\\System32\\advapi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970E370 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {shell32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":38,"event":"module","body":{"module":{"addressRange":"7FFDF5A20000","id":"7FFDF5A20000","name":"msvcrt.dll","path":"C:\\Windows\\System32\\msvcrt.dll","symbolFilePath":"C:\\Windows\\System32\\msvcrt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970EB70 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {shell32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":39,"event":"module","body":{"module":{"addressRange":"7FFDF5A20000","id":"7FFDF5A20000","name":"msvcrt.dll","path":"C:\\Windows\\System32\\msvcrt.dll","symbolFilePath":"C:\\Windows\\System32\\msvcrt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970E930 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970E730 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":40,"event":"module","body":{"module":{"addressRange":"7FFDF58A0000","id":"7FFDF58A0000","name":"sechost.dll","path":"C:\\Windows\\System32\\sechost.dll","symbolFilePath":"C:\\Windows\\System32\\sechost.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970E8F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {cryptbase.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":41,"event":"module","body":{"module":{"addressRange":"7FFDF58A0000","id":"7FFDF58A0000","name":"sechost.dll","path":"C:\\Windows\\System32\\sechost.dll","symbolFilePath":"C:\\Windows\\System32\\sechost.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970F0B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {cryptbase.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":42,"event":"module","body":{"module":{"addressRange":"7FFDF4F20000","id":"7FFDF4F20000","name":"shell32.dll","path":"C:\\Windows\\System32\\shell32.dll","symbolFilePath":"C:\\Windows\\System32\\shell32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970ED30 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {nu.exe}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":43,"event":"module","body":{"module":{"addressRange":"7FFDF4F20000","id":"7FFDF4F20000","name":"shell32.dll","path":"C:\\Windows\\System32\\shell32.dll","symbolFilePath":"C:\\Windows\\System32\\shell32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA48EAA20 Event: broadcaster = 0000023C92BF6020 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0000023C92BF6000 (pid = 18252), state = running}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":44,"event":"module","body":{"module":{"addressRange":"7FFDE85C0000","id":"7FFDE85C0000","name":"vcruntime140.dll","path":"C:\\Windows\\System32\\vcruntime140.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":45,"event":"module","body":{"module":{"addressRange":"7FFDE85C0000","id":"7FFDE85C0000","name":"vcruntime140.dll","path":"C:\\Windows\\System32\\vcruntime140.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":46,"event":"module","body":{"module":{"addressRange":"7FFDF38B0000","id":"7FFDF38B0000","name":"cryptbase.dll","path":"C:\\Windows\\System32\\cryptbase.dll","symbolFilePath":"C:\\Windows\\System32\\cryptbase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":47,"event":"module","body":{"module":{"addressRange":"7FFDF38B0000","id":"7FFDF38B0000","name":"cryptbase.dll","path":"C:\\Windows\\System32\\cryptbase.dll","symbolFilePath":"C:\\Windows\\System32\\cryptbase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":48,"event":"module","body":{"module":{"addressRange":"7FF71C420000","id":"7FF71C420000","name":"nu.exe","path":"c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe","symbolFilePath":"c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":49,"event":"continued","body":{"allThreadsContinued":true,"threadId":0}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970E630 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {imm32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970E270 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {imm32.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":50,"event":"module","body":{"module":{"addressRange":"7FFDF5840000","id":"7FFDF5840000","name":"imm32.dll","path":"C:\\Windows\\System32\\imm32.dll","symbolFilePath":"C:\\Windows\\System32\\imm32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":51,"event":"module","body":{"module":{"addressRange":"7FFDF5840000","id":"7FFDF5840000","name":"imm32.dll","path":"C:\\Windows\\System32\\imm32.dll","symbolFilePath":"C:\\Windows\\System32\\imm32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970E4B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {bcryptprimitives.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970FAF0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {bcryptprimitives.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":52,"event":"module","body":{"module":{"addressRange":"7FFDF4170000","id":"7FFDF4170000","name":"bcryptprimitives.dll","path":"C:\\Windows\\System32\\bcryptprimitives.dll","symbolFilePath":"C:\\Windows\\System32\\bcryptprimitives.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":53,"event":"module","body":{"module":{"addressRange":"7FFDF4170000","id":"7FFDF4170000","name":"bcryptprimitives.dll","path":"C:\\Windows\\System32\\bcryptprimitives.dll","symbolFilePath":"C:\\Windows\\System32\\bcryptprimitives.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
Welcome to Nushell 0.14.1 (type 'help' for more info)
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970F170 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {windows.storage.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970F3F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {windows.storage.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":54,"event":"module","body":{"module":{"addressRange":"7FFDF26F0000","id":"7FFDF26F0000","name":"windows.storage.dll","path":"C:\\Windows\\System32\\windows.storage.dll","symbolFilePath":"C:\\Windows\\System32\\windows.storage.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":55,"event":"module","body":{"module":{"addressRange":"7FFDF26F0000","id":"7FFDF26F0000","name":"windows.storage.dll","path":"C:\\Windows\\System32\\windows.storage.dll","symbolFilePath":"C:\\Windows\\System32\\windows.storage.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970F7F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {wldp.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970FEB0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {wldp.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":56,"event":"module","body":{"module":{"addressRange":"7FFDF39B0000","id":"7FFDF39B0000","name":"wldp.dll","path":"C:\\Windows\\System32\\wldp.dll","symbolFilePath":"C:\\Windows\\System32\\wldp.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":57,"event":"module","body":{"module":{"addressRange":"7FFDF39B0000","id":"7FFDF39B0000","name":"wldp.dll","path":"C:\\Windows\\System32\\wldp.dll","symbolFilePath":"C:\\Windows\\System32\\wldp.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970F6F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {SHCore.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970FEF0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {SHCore.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":58,"event":"module","body":{"module":{"addressRange":"7FFDF5790000","id":"7FFDF5790000","name":"SHCore.dll","path":"C:\\Windows\\System32\\SHCore.dll","symbolFilePath":"C:\\Windows\\System32\\SHCore.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":59,"event":"module","body":{"module":{"addressRange":"7FFDF5790000","id":"7FFDF5790000","name":"SHCore.dll","path":"C:\\Windows\\System32\\SHCore.dll","symbolFilePath":"C:\\Windows\\System32\\SHCore.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970F4F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {shlwapi.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":60,"event":"module","body":{"module":{"addressRange":"7FFDF6560000","id":"7FFDF6560000","name":"shlwapi.dll","path":"C:\\Windows\\System32\\shlwapi.dll","symbolFilePath":"C:\\Windows\\System32\\shlwapi.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970FFF0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {shlwapi.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":61,"event":"module","body":{"module":{"addressRange":"7FFDF6560000","id":"7FFDF6560000","name":"shlwapi.dll","path":"C:\\Windows\\System32\\shlwapi.dll","symbolFilePath":"C:\\Windows\\System32\\shlwapi.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970F4F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {profapi.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA970FDB0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {profapi.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":62,"event":"module","body":{"module":{"addressRange":"7FFDF3F40000","id":"7FFDF3F40000","name":"profapi.dll","path":"C:\\Windows\\System32\\profapi.dll","symbolStatus":"Symbols not found"},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":63,"event":"module","body":{"module":{"addressRange":"7FFDF3F40000","id":"7FFDF3F40000","name":"profapi.dll","path":"C:\\Windows\\System32\\profapi.dll","symbolStatus":"Symbols not found"},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA97103F0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntmarta.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA9711070 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntmarta.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":64,"event":"module","body":{"module":{"addressRange":"7FFDF2400000","id":"7FFDF2400000","name":"ntmarta.dll","path":"C:\\Windows\\System32\\ntmarta.dll","symbolFilePath":"C:\\Windows\\System32\\ntmarta.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":65,"event":"module","body":{"module":{"addressRange":"7FFDF2400000","id":"7FFDF2400000","name":"ntmarta.dll","path":"C:\\Windows\\System32\\ntmarta.dll","symbolFilePath":"C:\\Windows\\System32\\ntmarta.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA9710DB0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel.appcore.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA97104B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel.appcore.dll}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":66,"event":"module","body":{"module":{"addressRange":"7FFDF2E80000","id":"7FFDF2E80000","name":"kernel.appcore.dll","path":"C:\\Windows\\System32\\kernel.appcore.dll","symbolFilePath":"C:\\Windows\\System32\\kernel.appcore.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":67,"event":"module","body":{"module":{"addressRange":"7FFDF2E80000","id":"7FFDF2E80000","name":"kernel.appcore.dll","path":"C:\\Windows\\System32\\kernel.appcore.dll","symbolFilePath":"C:\\Windows\\System32\\kernel.appcore.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA9709D30 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023CA97093B0 Event: broadcaster = 0000023C935AE530 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] Debug event: 0000023C9B3F8650 Event: broadcaster = 0000023C92BF6020 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0000023C92BF6000 (pid = 18252), state = exited}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":68,"event":"output","body":{"output":"Process exited with code 0.\n"}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":69,"event":"exited","body":{"exitCode":0}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":70,"event":"terminated","body":{}}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] --> {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":11}
[2020-06-08T20:23:05Z ERROR codelldb::debug_session] Internal debugger error: cannot destroy process ffffffff while state = 10
[2020-06-08T20:23:05Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":11,"success":false,"message":"Internal debugger error: cannot destroy process ffffffff while state = 10","show_user":true}
[2020-06-08T20:23:05Z DEBUG codelldb::dap_session] Client has disconnected
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] End of the requests stream
[2020-06-08T20:23:05Z DEBUG codelldb::debug_session] DebugSession::drop()
[2020-06-08T20:23:05Z DEBUG codelldb] Session has ended
[2020-06-08T20:23:05Z DEBUG codelldb] Exiting
Debug adapter exit code=0, signal=null.

@RobRuckOB
Copy link

I've been getting a similar error since the most recent CodeLLDB update, only on MacOS (10.14.6):

/Users/rob.ruck/.vscode/extensions/vadimcn.vscode-lldb-1.5.3/adapter/codelldb terminal-agent --port=54229 Error: Os { code: 61, kind: ConnectionRefused, message: "Connection refused" }

After a lot of tries it will eventually work. I hadn't noticed if the port was changing every time for me, but if that was the case, I guess it eventually hits on a port that isn't currently in use and so works.

@vadimcn vadimcn added the cause:Unclear The cause of the issue is unclear and/or I was not able to reproduce it. label Jun 10, 2020
@vadimcn
Copy link
Owner

vadimcn commented Jun 10, 2020

Since this happened on different OS'es, I would suspect some sort of race condition existing when the terminal agent reverse-connects to the main debugger process. :-\

For now, you can set "terminal": "console" to use the Debug Console for target output.

@fdncred
Copy link
Author

fdncred commented Jun 10, 2020

"terminal": "console" is no longer valid in vscode. I'm not sure what the new setting is. I'm using vscode 1.46.0, or 1.46.0-insider.
image

@vadimcn
Copy link
Owner

vadimcn commented Jun 10, 2020

Sorry, this goes into the launch configuration. If you want to set it as a default in settings, use "lldb.launch.terminal".

@fdncred
Copy link
Author

fdncred commented Jun 12, 2020

@vadimcn Thanks but that didn't make any difference. I've used your lldb in the past with great success however recently I haven't be able to. I'm not sure if it's something new on your end or something new on my end that preventing it from working properly. Any further tips would be appreciated.

Debug log (not verbose)
Running `cargo build --workspace --features=stable --message-format=json`...
   Compiling nu_plugin_textview v0.15.0 (C:\Users\username\source\repos\nushell\crates\nu_plugin_textview)
   Compiling nu_plugin_match v0.15.0 (C:\Users\username\source\repos\nushell\crates\nu_plugin_match)
   Compiling nu_plugin_inc v0.15.0 (C:\Users\username\source\repos\nushell\crates\nu_plugin_inc)
   Compiling nu_plugin_post v0.15.0 (C:\Users\username\source\repos\nushell\crates\nu_plugin_post)
   Compiling nu_plugin_fetch v0.15.0 (C:\Users\username\source\repos\nushell\crates\nu_plugin_fetch)
   Compiling nu_plugin_sys v0.15.0 (C:\Users\username\source\repos\nushell\crates\nu_plugin_sys)
   Compiling nu_plugin_tree v0.15.0 (C:\Users\username\source\repos\nushell\crates\nu_plugin_tree)
   Compiling nu_plugin_binaryview v0.15.0 (C:\Users\username\source\repos\nushell\crates\nu_plugin_binaryview)
   Compiling nu_plugin_ps v0.15.0 (C:\Users\username\source\repos\nushell\crates\nu_plugin_ps)
   Compiling nu v0.15.0 (C:\Users\username\source\repos\nushell)
   Compiling nu_plugin_start v0.15.0 (C:\Users\username\source\repos\nushell\crates\nu_plugin_start)
    Finished dev [unoptimized + debuginfo] target(s) in 38.28s
Raw artifacts:
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_inc.exe',
  name: 'nu_plugin_inc',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_textview.exe',
  name: 'nu_plugin_textview',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_match.exe',
  name: 'nu_plugin_match',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_post.exe',
  name: 'nu_plugin_post',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_fetch.exe',
  name: 'nu_plugin_fetch',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_tree.exe',
  name: 'nu_plugin_tree',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_start.exe',
  name: 'nu_plugin_start',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_sys.exe',
  name: 'nu_plugin_sys',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_ps.exe',
  name: 'nu_plugin_ps',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_binaryview.exe',
  name: 'nu_plugin_binaryview',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_core_inc.exe',
  name: 'nu_plugin_core_inc',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_stable_post.exe',
  name: 'nu_plugin_stable_post',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_stable_start.exe',
  name: 'nu_plugin_stable_start',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_core_sys.exe',
  name: 'nu_plugin_core_sys',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_core_ps.exe',
  name: 'nu_plugin_core_ps',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_stable_match.exe',
  name: 'nu_plugin_stable_match',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_stable_binaryview.exe',
  name: 'nu_plugin_stable_binaryview',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_stable_fetch.exe',
  name: 'nu_plugin_stable_fetch',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_stable_tree.exe',
  name: 'nu_plugin_stable_tree',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu_plugin_core_textview.exe',
  name: 'nu_plugin_core_textview',
  kind: 'bin'
}
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe',
  name: 'nu',
  kind: 'bin'
}
Filtered artifacts: 
{
  fileName: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe',
  name: 'nu',
  kind: 'bin'
}
configuration: {
  type: 'lldb',
  request: 'launch',
  name: "Debug executable 'nu'",
  args: [],
  cwd: '${workspaceFolder}',
  terminal: 'console',
  relativePathBase: 'c:\\Users\\username\\source\\repos\\nushell',
  program: 'c:\\Users\\username\\source\\repos\\nushell\\target\\debug\\nu.exe',
  sourceLanguages: [ 'rust' ]
}
Listening on port 2947
error: nu.exe :: Class 'nu_protocol::hir::Binary' has a member 'left' of type 'nu_protocol::hir::SpannedExpression' which does not have a complete definition.
error: nu.exe :: Class 'nu_protocol::hir::Expression' has a member '__0' of type 'alloc::vec::Vec' which does not have a complete definition.
error: nu.exe :: Class 'nu_source::meta::Spanned' has a member 'item' of type 'nu_protocol::value::primitive::Primitive' which does not have a complete definition.
error: nu.exe :: Class 'indexmap::Bucket' has a member 'value' of type 'nu_protocol::value::Value' which does not have a complete definition.
Welcome to Nushell 0.15.0 (type 'help' for more info)
[2020-06-12T20:01:16Z ERROR codelldb::debug_session] Internal debugger error: cannot destroy process ffffffff while state = 10
Debug adapter exit code=0, signal=null.
Launch Configuration
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
    {
            "type": "lldb",
            "request": "launch",
            "name": "Debug executable 'nu'",
            "cargo": {
                "args": [
                    "build",
                    // "--bin=nu",
                    // "--package=nu"
                    "--workspace",
                    "--features=stable"
                ],
                "filter": {
                    "name": "nu",
                    "kind": "bin"
                }
            },
            //"args": ["-c \"sys | get mem\""],
            //"args": ["-c ls"],
            "args":[],
            "cwd": "${workspaceFolder}",
            "terminal": "console"
        },
    ]
}

@vadimcn vadimcn added the help wanted I am not likely to be able to investigate this issue or implement a solution. Please help! label Jun 3, 2021
@vadimcn
Copy link
Owner

vadimcn commented Jun 3, 2021

CodeLLDB uses a helper process launched in the terminal, which communicates with the main adapter process via TCP/IP. On Windows, it sometimes fails to establish this connection. This never happens on my machine, so I can't investigate. I would appreciate is someone could figure out what's going on.

@Tegon-McCloud
Copy link

Tegon-McCloud commented Sep 4, 2021

I have this issue on Windows. The problem seems to be that the main and adapter processes does not agree on the port to use. In the LLDB output it the port is always 2 lower than the port the adapter process is taking as an agument. Eg the LLDB output says Listening on port 65027 but the adapter is started with the line PS C:\Users\valde\Projects\bvh-visualizer> & 'c:\Users\valde\.vscode\extensions\vadimcn.vscode-lldb-1.6.5\adapter\codelldb.exe' 'terminal-agent' '--port=65029'.

Could it be a temporary fix to simply subtract 2 from the argument?

@xylophone21
Copy link

I have the same issue on macOS 11.6.1 (20G224) M1

vadimcn.vscode-lldb-1.6.10/adapter/codelldb terminal-agent --port=53754
Error: Os { code: 61, kind: ConnectionRefused, message: "Connection refused" }

Any update?

@vadimcn
Copy link
Owner

vadimcn commented Nov 25, 2021

Any update?

No. I was not able to reproduce this so far.

@0x00A
Copy link

0x00A commented Nov 26, 2021

FWIW I had the same issue on Windows 10 and I found a solution in another issue #410 (comment)

@vadimcn
Copy link
Owner

vadimcn commented Nov 29, 2021

@0x00A The issue you've referenced concerns main codelldb process crashing due to segfault in msdia140.dll, so, naturally, the terminal agent is unable to establish a connection to it.

This one, however, is about when the the debug session runs and completes successfully, other than being unable to redirect debuggee's output to the terminal.

@nigelgbanks
Copy link

nigelgbanks commented Dec 3, 2021

I have the same issue only on Intel macOS Monterey. Though is most likely related to my use of Nix for installing this extension.

Could it be a temporary fix to simply subtract 2 from the argument?

I'm seeing this as well, but I don't think it's related. From reading the code the first port that is printed is what the Visual Studio Code DebugAdapterServer is connecting to and that seems to be successful. The second port that is printed comes from the codelldb executable here. From the docs.

Binding with a port number of 0 will request that the OS assigns a port to this listener. The port allocated can be queried via the TcpListener::local_addr method.

The port just so happens to always be two off.

Running the command LLDB Run Diagnostics from within Visual Studio works, I'm still not sure as to what the actual problem is.

I have wrapper scripts in place of the replace codelldb:

adapter/codelldb:

 #! /nix/store/r42x7q316gznkm5y9b0cl4564g174zyl-bash-5.1-p8/bin/bash -e
export PATH='/nix/store/x0fw0l4d6zwgfdwbpp23iwhm3c6a1hh3-python3-3.9.6/bin'${PATH:+':'}$PATH
export LD_LIBRARY_PATH='/nix/store/x0fw0l4d6zwgfdwbpp23iwhm3c6a1hh3-python3-3.9.6/lib'${LD_LIBRARY_PATH:+':'}$LD_LIBRARY_PATH
exec -a "$0" "/nix/store/84zay225zfzqv4gl1dabhwp72775ff70-vscode-extension-vadimcn-vscode-lldb-1.6.8/share/vscode/extensions/vadimcn.vscode-lldb/adapter/.codelldb-wrapped_"  "$@"

adapter/.codelldb-wrapped_:

 #! /nix/store/r42x7q316gznkm5y9b0cl4564g174zyl-bash-5.1-p8/bin/bash -e
export LLDB_DEBUGSERVER_PATH=${LLDB_DEBUGSERVER_PATH-'/nix/store/882magbkjz6ysdisbcxiqkbqhj0r5ppf-lldb-12.0.1/bin/lldb-server'}
exec -a "$0" "/nix/store/84zay225zfzqv4gl1dabhwp72775ff70-vscode-extension-vadimcn-vscode-lldb-1.6.8/share/vscode/extensions/vadimcn.vscode-lldb/adapter/.codelldb-wrapped"  "$@"

adapter/.codelldb-wrapped is the actual executable.

My current working theory is that the environment variables are dropped for lack of a better word, when the executable codelldb re-enters it self when attempting to create a debug terminal here. As it won't run the wrapper scripts again.

EDIT: I've tested by wrapping the launching of Visual Studio Code so that the environment variables were set, but that didn't seem to fix anything, I was able to confirm that the variables were by looking at the history of the terminal with "lldb.launch.terminal": "external" set.

@MunchyYDL
Copy link

I've run in to this problem as well, and while I don't have any more information about why it fails, at least for me, I can always start the debug-process for my unit-tests. Don't know if this can give some clue to anything?

Please tell me if you need any kind of additional info, and I'll try to help. :)

launch.json

As you can see, this is the regular default launch.json that is automatically created:

    {
      // Use IntelliSense to learn about possible attributes.
      // Hover to view descriptions of existing attributes.
      // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
      "version": "0.2.0",
      "configurations": [
        {
          "type": "lldb",
          "request": "launch",
          "name": "Debug executable 'iv'",
          "cargo": {
            "args": [
              "build",
              "--bin=iv",
              "--package=iv"
            ],
            "filter": {
              "name": "iv",
              "kind": "bin"
            }
          },
          "args": [],
          "cwd": "${workspaceFolder}"
        },
        {
          "type": "lldb",
          "request": "launch",
          "name": "Debug unit tests in executable 'iv'",
          "cargo": {
            "args": [
              "test",
              "--no-run",
              "--bin=iv",
              "--package=iv"
            ],
            "filter": {
              "name": "iv",
              "kind": "bin"
            }
          },
          "args": [],
          "cwd": "${workspaceFolder}"
        }
      ]
    }

@alanhe
Copy link

alanhe commented Jan 24, 2022

I've similar problems on my Mac.

When I try to debug Rust, I get "process exited with status -1 (Error 1)". But when I debug the same code in a .devcontainer, it works somehow.

I've reinstalled everything: Rust / VS Code. I deleted the extensions folder in ~/.vscode and reinstall the extension too.

Is there a config in launch.json that I can print all the commands send to lldb? -- so that I can manually reply every steps to know what's wrong with my environment?
So far, I've "lldb.verboseLogging": true turned on, but still cannot figure out why.


Update: After some hard investigations, I find that, if I start VS code with sudo (though VS Code is against this), the debug feature works fine. Some mysterious service on my machine is blocking codelldb from launching new process.

[2022-01-26T12:44:45.987Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":5,"event":"output","body":{"output":"Launching: <path-to-my-app>\n"}}
[2022-01-26T12:44:46.137Z ERROR codelldb::debug_session] process exited with status -1 (Error 1)

@charlesboudousquie
Copy link

charlesboudousquie commented Feb 3, 2022

In my program the debugger runs fine if main is like this:
fn main()
{
// insert non networking code
}
but If I add networking code:
#[tokio::main]
async fn main() -> std::io::Result<()>
{

HttpServer::new(|| {
    App::new()
    //.route("/", web::get().to(greet))
    //.route("/{name}", web::get().to(greet))
    .route("/health_check", web::get().to(health_check))
})
.bind("127.0.0.1:8000")?
.run()
.await

}
then I get that connection refused.

@aminya
Copy link

aminya commented Feb 14, 2022

I also get this error. It is similar to the errors of #635, although I don't use tokio.

.... which does not have a complete definition

@charlesboudousquie
Copy link

charlesboudousquie commented Feb 22, 2022

I fixed it on my end.
How: Turns out that I was using lldb debugger instead of the c++ debugger https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
lldb is not usable as a debugger on WINDOWS. If youre using windows you have to use the c++ extension instead. lldb only works for linux and mac.

@vadimcn vadimcn added the stale The issue will be closed, unless new information allowing to make progress comes up soon. label Jul 15, 2022
@johndelavega
Copy link

johndelavega commented Aug 11, 2022

I am able to run CodeLLDB on Windows 10 with Rust debugging and tokio dependency

There are 2 breakpoints that shows up below in vscode that cannot be deleted but can be disabled. When either "[x] C++: on throw|catch" is checked then debugging fails and I get a dialog message that says

"Oops! The debug adapter terminated abnormally."
"Source: CodeLLDB (extension)"

vscode breakpoints:
[x]C++: on throw
[ ]C++: on catch

The Poweshell terminal clears so I can't see it, but using up arrow key for command history I get

'c:\Users\John\.vscode\extensions\vadimcn.vscode-lldb-1.7.3\adapter\codelldb.exe' 'terminal-agent' '--connect=60737' 

when I press enter I get

Error: Os { code: 10061, kind: ConnectionRefused, message: "No connection could be made because the target machine actively refused it." }

When I uncheck both breakpoints then vscode debugging run succeeds.

vscode breakpoints:
[ ]C++: on throw
[ ]C++: on catch

I can add my own breakpoints and vscode debugging works

@lost22git
Copy link

lost22git commented Oct 4, 2022

same problem with vscode rust codelldb in win11

@vadimcn
Copy link
Owner

vadimcn commented Oct 4, 2022

@lost4git Can you please clarify? Are you seeing an adapter crash, or just the "No connection could be made..." message? What is your codelldb version?

@lost22git
Copy link

@vadimcn

Error: Os { code: 10061, kind: ConnectionRefused, message: "No connection could be made because the target machine actively refused it." }

v1.8.1

@vadimcn
Copy link
Owner

vadimcn commented Oct 5, 2022

@lost4git What about the other question:

Are you seeing an adapter crash, or just the "No connection could be made..." message?

@vadimcn vadimcn closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2023
@aminya
Copy link

aminya commented Aug 21, 2023

@vadimcn I think CodeLLDB should log more information on why this error happens. Everyone in this thread had different reasons, making it hard to pinpoint the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cause:Unclear The cause of the issue is unclear and/or I was not able to reproduce it. help wanted I am not likely to be able to investigate this issue or implement a solution. Please help! stale The issue will be closed, unless new information allowing to make progress comes up soon.
Projects
None yet
Development

No branches or pull requests