Debugger breakpoints not registering in firmware.elf

When I place breakpoints as normal by clicking by the line number in VSCode, my code doesn’t stop there when I run the debugger. Upon manually checking the breakpoints in firmware.elf in gdb, it says there are no breakpoints.

I am using an Arduino Due board with a Black Magic Probe debugging tool. My platformio.ini looks as follows:

platform = atmelsam
board = due
framework = arduino
monitor_speed = 9600
debug_tool = blackmagic
upload_protocol = blackmagic
upload_port = COM5
build_type = debug