Skip to content

Conversation

@sw
Copy link
Contributor

@sw sw commented Dec 31, 2024

Uses Bear to create a compilation database from the make run so that the C/C++ Intellisense or clangd will navigate to the correct definitions.

This build task is run before launching the pyOCD or J-Link debugger.

Note that when changing between targets, you may have to restart VS Code so that the compilation database is reloaded. I have not found a way to trigger this from the build task.

I only tested this on Linux with pyOCD. Marking this PR as draft to get comments on whether this change is desired at all, and if some settings are not right on Windows or with J-Link.

Uses Bear to create a compilation database from the `make` run so that
the C/C++ Intellisense will navigate to the correct definitions.

This build task is run before launching the pyOCD or J-Link debugger.

Note that when changing between targets, you may have to restart VS Code
so that the compilation database is reloaded. I have not found a way to
trigger this from the build task.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant