-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add definitionPath property to debug configuration attributes #116
base: main
Are you sure you want to change the base?
Add definitionPath property to debug configuration attributes #116
Conversation
Signed-off-by: Florent Vion <florent.vion@st.com>
Can one of the admins verify this patch? |
@FlorentVSTM, can you say a little bit more about how the two extensions interact? How does the |
yes of course, The peripheral inspector consumes the definitionPath option from the gdb debug configuration thanks to the debug session provided by the tracker "onWillStartSession" (periperalTreeProvider.ts). |
The use case sounds reasonable, but I'm not sure the approach is sound, because I'm not sure that it would make sense to document in this plugin all the data that any variant of GDB debugging might use: it should document the schema expected by the CDT-GDB Adapter, whose functionality it exposes to VSCode. On the other hand, I'm not aware of a mechanism in the VSCode API that would allow another plugin to modify the schema of the debug configuration declared here without supplying a debug configuration of its own, which also isn't ideal. Let me take a look at the code that handles debug schemas and see if we have any options that would allow for a cleaner separation. |
I agree with you that it would not make sense to document in this plugin all the data that any variant of GDB debugging might use. It should primarily document the schema expected by the CDT-GDB Adapter. |
Hi @colin-grant-work, |
Perfect - this is exactly what I was hoping for: I think extending it when the extension is known to be used is exactly the right approach. I apologize that I didn't get around to finding it myself, but I'm glad to know it's possible. |
This PR adds the property 'definitionPath' to the attributes of the 'gdbtarget' debug configuration. This property comes from the peripheral-inspector extension.
Adding this property promotes the use of the eclipse-cdt.peripheral-inspector extension and avoids the yellow squiggly line in the launch.json file.