vsc always reports unknown error when trying to debug, Is codelldb compatible with programs compiled by mingw64-clang? #991
Unanswered
UradaSources
asked this question in
Q&A
Replies: 2 comments
-
I don't know what happened but it suddenly worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As the title shows, my project is very simple. It has only one main.cpp file, which is generated by cmake. The -g compilation option is specified using target_compile_options(${PROJECT_NAME} PRIVATE -g). But when trying to debug in vsc, it always reports " unknown error", I tried to use lldb.exe under .vscode\extensions\vadimcn.vscode-lldb-1.10.0\lldb\bin, and the same error was reported.
My compiler is mingw64-ucrt64-clang++, and the generated exe can be debugged normally in lldb in the mingw64 environment. I used 2 computers to test in similar environments, and both will prompt "unknown error"
I tried to replace the exe and related dll of extensions\vadimcn.vscode-lldb-1.10.0\lldb\bin with those of the mingw64 environment, but it threw
Beta Was this translation helpful? Give feedback.
All reactions