Debugger autodetection uses clang regex for gcc #4050
Labels
enhancement
an enhancement to the product that is either not present or an improvement to an existing feature
Feature: debug/launch
Milestone
I don't have any experience in developing VS Code extensions so I don't even try to make a proper patch, but I found out that here:
vscode-cmake-tools/src/debugger.ts
Line 219 in 406216a
the
compilerPath.replace
operation is using a clang-specific regex. In my localdist/main.js
I replaced this line with:miDebuggerPath = compilerPath.replace('gcc', 'gdb').replace('g++', 'gdb');
and got further on my bughunt. You might want to think if a similar regex as for clang.
(As a sidenote, it seems that when using a toolchain file with CMake, the
CMAKE_<lang>_COMPILER
variables don't necessarily end up inCMakeCache.txt
so this method of auto-detection based on the cache fails to begin with...)The text was updated successfully, but these errors were encountered: