Everyone can contribute! Learn DevOps and Cloud Native in our cafe ☕
Technology is moving fast in the DevOps and Cloud Native community.
Join the conversation and add your thoughts, tips, experiences, stories.
"Everyone Can Contribute" is inspired by GitLab's mission.
21. Kaeffchen: GitLab with Gitpod, debugging C++ applications with GDB
Highlights
After exploring Gitpod last week, we decided to try it out with a C++ project. Actually, we created an error situation to try out the GDB debugger.
Yes, a segfault. After investigating with the terminal based gdb command, we thought about how this integrates into Gitpod itself. And voilà, with the following documentation we were able to integrate GDB on the compiled binary.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": [
{
"type": "gdb",
"request": "launch",
"name": "Debug HeyConsole (GDB)",
"target": "./build/bin/heyconsole",
"cwd": "${workspaceRoot}",
"valuesFormatting": "parseText"
}
]
}
In order to compile the repository, you need to do the following in the Gitpod terminal:
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
make
Recording
Enjoy the session!
Insights
- Agenda
- Guests: Niclas Mietz, Michael Friedrich, Michael Aigner, Feu Mourek
- Next ☕ chat
#21
: 2020-10-08 - Agenda
Bookmarks
Written by: Michael Friedrich