I have just upgraded to Swift 6.1 on Windows 10. I have updated the related VS Code extensions as well. I used the Manual Installation instructions.
For several of my Swift programs, debugging with VS Code is working great, including the newly working (for me) displays of variables (thanks so much for that!).
However in one program, when at a breakpoint, I hit F5 to go. LLDB mysteriously dies in one of a couple ways. The text from the VS Code Debug Console is below.
I plan to submit this to GitHub - swiftlang/llvm-project: The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Swift’s stable releases of Clang as well as support the Swift project., since the swift project has its own fork. However, the message below in Debug Console #2 says to submit it to the LLVM-project. Does it make sense to submit this to the swift folks?
Also, I thought I'd ask here if anyone has seen this and knows of a work around?
Thanks!
Debug Console #1, for some attempts:
Error while parsing SDK path from debug info: class llvm::Expected __cdecl lldb_private::Platform::GetSDKPathFromDebugInfo(class lldb_private::CompileUnit &) not implemented for 'host' platform.error: Error while parsing SDK path from debug info: class llvm::Expected __cdecl lldb_private::Platform::GetSDKPathFromDebugInfo(class lldb_private::CompileUnit &) not implemented for 'host' platform.
- 17:29:11.000 ERROR src/socketexternalcom.cpp:47: attach failed!
- 17:29:20.531 WARNING src/winwatchtowerdriver.cpp:368: Looks like our dir_record disappeared!
Debug Console #2, for most attempts:
Error while parsing SDK path from debug info: class llvm::Expected __cdecl lldb_private::Platform::GetSDKPathFromDebugInfo(class lldb_private::CompileUnit &) not implemented for 'host' platform.error: Error while parsing SDK path from debug info: class llvm::Expected __cdecl lldb_private::Platform::GetSDKPathFromDebugInfo(class lldb_private::CompileUnit &) not implemented for 'host' platform.
Assertion failed: Out.empty(), file C:\Users\swift-ci\jenkins\workspace\swift-6.1-windows-toolchain\llvm-project\llvm\lib\Support\ConvertUTFWrapper.cpp, line 85
PLEASE submit a bug report to GitHub · Where software is built and include the crash backtrace.
Stack dump:
0. Program arguments: "C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\lldb-dap.exe"
Exception Code: 0x80000003
#0 0x00007ff765486565 (C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\lldb-dap.exe+0x66565)
#1 0x00007ffa92d01881 (C:\WINDOWS\System32\ucrtbase.dll+0x71881)
#2 0x00007ffa92d02851 (C:\WINDOWS\System32\ucrtbase.dll+0x72851)
#3 0x00007ffa92d041b5 (C:\WINDOWS\System32\ucrtbase.dll+0x741b5)
#4 0x00007ffa92d044f1 (C:\WINDOWS\System32\ucrtbase.dll+0x744f1)
#5 0x00007ff9ff1b4590 (C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\liblldb.dll+0xc84590)
#6 0x00007ff9fef13221 (C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\liblldb.dll+0x9e3221)
#7 0x00007ff9fe7a2902 (C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\liblldb.dll+0x272902)
#8 0x00007ff765452fda (C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\lldb-dap.exe+0x32fda)
#9 0x00007ff76544285e (C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\lldb-dap.exe+0x2285e)
#10 0x00007ff765465b0c (C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\lldb-dap.exe+0x45b0c)
#11 0x00007ff765466048 (C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\lldb-dap.exe+0x46048)
#12 0x00007ff765444c40 (C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\lldb-dap.exe+0x24c40)
#13 0x00007ff76549ab10 (C:\Program Files\Swift\Toolchains\6.1.0+Asserts\usr\bin\lldb-dap.exe+0x7ab10)
#14 0x00007ffa93fa7374 (C:\WINDOWS\System32\KERNEL32.DLL+0x17374)
#15 0x00007ffa9533cc91 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4cc91)