bootlin / training-materials

Bootlin embedded Linux and kernel training materials
https://bootlin.com/training/
Other
576 stars 174 forks source link

debugging: explain how to configure debugging in GUI (IDE) #208

Closed Tropicao closed 5 months ago

Tropicao commented 11 months ago

Trainees from different sessions has mentioned that it would be very convenient for them to be able to use the debugger directly in their IDE (like some of them are used to with their current tools, for bare metal for example)

We could either:

Since each trainee can have its own IDE, it is up to them to configure their IDE, but quick tests has shown it is pretty straightforward to configure debugging in VSCode, it may be a very good candidate to show a quick example. It should probably remain a "bonus" and not become a foreground topic, since the training is about learning about gdb usage

tpetazzoni commented 11 months ago

Note: we already have a demo of VSCode + gdbserver for remote debugging in the sysdev course. Maybe some inspiration can be taken from there. However, the setup of the lab in the sysdev course is not very nice, with some home-grown scripts, a pre-defined VSCode project with several hard-coded paths. It works, but it doesn't look very pretty.

Tropicao commented 11 months ago

Great, I'll definitely take a look at it and see if something can be shared and/or improved :)