This VS Code extension is random helper commands to enhance gdb debugging experience.
-
Place your cursor on the line you want to copy.
-
Press
Alt+L
(Windows/Linux) or run the commandCopy Relative Path and Line Numbers for Breakpoint Location
from the Command Palette (F1
orCtrl+Shift+P
). -
The following format will be copied to your clipboard:
- "b relative/path/to/file:lineNumber"
Example:
- "b src/main.cpp:42"