Skip to content

[SR-1667] Erroneous behavior putting a breakpoint on a function that gets optimized out #4401

Open
@NachoSoto

Description

@NachoSoto
Previous ID SR-1667
Radar None
Original Reporter @NachoSoto
Type Bug

Attachment: Download

Environment

Xcode 7.3.1 (7D1014)

Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug, DebugInfo
Assignee None
Priority Medium

md5: e13c861b0a42bc94ed9a24d36d6ad66a

Issue Description:

Putting a breakpoint in Xcode on a `private` function that is never called (which I imagine gets optimized out, even in `-Onone`) results in LLDB stopping somewhere else.

This is very confusing and not at all intuitive. I think the correct behavior would be to never stop on that breakpoint at all (since the function is not called).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions