Skip to content

Breakpoint set to wrong line #2945

@PerennialNovice

Description

@PerennialNovice

I try to debug my project, but when I set a breakpoint the target halts at a different line

Breakpoint is set to line 236, but as the orange highlight shows, the target hats at line 240

Image

Optimize for debug is ticked

Image

Core logs and symbols are enabled and there is no optimization

Image

Initially it was optimized for debug (-Og), behaviour is the same

xModemMode is declared volatile (did this after stumbling on the shifted breakpoint, but it did change nothing)

Image

When I try stepping through the code, I can reach the line 236 (although nothing works as intended because stepping disturbs the RS232 timings, data is lost, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions