Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to debug the include path search specified in c_cpp_properties.json #13274

Open
raffaeler opened this issue Feb 12, 2025 · 1 comment
Assignees
Labels
Feature: Configuration An issue related to configuring the extension or IntelliSense Language Service more info needed The issue report is not actionable in its current state

Comments

@raffaeler
Copy link

Environment

  • OS and Version: Ubuntu 24.04
  • VS Code Version: 1.97.0
  • C/C++ Extension Version: 1.24.9
  • If using SSH remote, specify OS of remote machine: (local use)

Bug Summary and Steps to Reproduce

Bug Summary:
I am following the reference page: https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference
Anyway, there are many cases where the include are not found even if the files are found in the provided paths
Of course, the code compiles successfully.

The compiler is:
gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0

How can I visualize all the paths where the definitions are searched?
How can I "debug" the search paths?

Configuration and Logs

N/A

Other Extensions

No response

Additional context

No response

@sean-mcmanus
Copy link
Contributor

@raffaeler Can you try running the C/C++: Log Diagnostics command? The include paths reported there should match what is being used to resolve includes.

@sean-mcmanus sean-mcmanus self-assigned this Feb 12, 2025
@sean-mcmanus sean-mcmanus added Language Service more info needed The issue report is not actionable in its current state Feature: Configuration An issue related to configuring the extension or IntelliSense labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Configuration An issue related to configuring the extension or IntelliSense Language Service more info needed The issue report is not actionable in its current state
Projects
Status: No status
Development

No branches or pull requests

2 participants