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:

[env:due]
platform = atmelsam
board = due
framework = arduino
lib_deps=
    pololu/LSM6@^2.0.1
    pololu/LIS3MDL@^2.0.0
monitor_speed = 9600
debug_tool = blackmagic
upload_protocol = blackmagic
upload_port = COM5
build_type = debug