使用VScode 开发php扩展时,提示"检测到#include错误,请更新includepath"
执行
gcc -v -E -x c++ -
#include "..." search starts here:
#include <...> search starts here:
/Applications//Contents/Developer/Toolchains//usr/bin/../include/c++/v1
/usr/local/include
/Applications//Contents/Developer/Toolchains//usr/lib/clang/11.0.0/include
/Applications//Contents/Developer/Toolchains//usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
找到上面的把它加入到 c_cpp_properties.json。