VSCode版本: 1.83.1 (user setup),LLVM版本17.0.1,使用msvc头文件;codelldb版本1.10.0
现象:左侧变量栏中Local在部分位置不显示任何内容,监视窗口添加相应变量提示“warning: Stopped in a C++ method, but 'this' isn't available; pretending we are in a generic context ”。
正常:
异常:
网上搜到了一个llvm的issue:nullhttps://github.com/llvm/llvm-project/issues/23506,但无人回答;stack overflow上搜到了相似的问题visual studio code - c++ debugging: debug statements from console - Stack Overflow
https://stackoverflow.com/questions/61366842/c-debugging-debug-statements-from-console,但给出的解决方案(关优化,开debug模式)无效。
最终折中方案:使用微软官方插件C/C++配置gdb调试;禁用intellisense,使用clangd补全