Uploaded image for project: 'Swift'
  1. Swift
  2. SR-13044

LLDB function completion for breakpoints doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: LLDB for Swift
    • Labels:
      None

      Description

      Let's consider this program

      public struct Foo<T> {
          func otherFunction(x: T, string: String) {}
      }
      
      Foo<String>().otherFunction(x: "", string: "")
      

      and let's assume we want to break on otherFunction. Let's try to use completion in LLDB:

      (lldb) break set -n some2.Foo.ot<TAB>
      

      yields

      (lldb) break set -n some2.Foo.otherFunction(x: A, string: Swift.String) -> () 
      

      which looks great! However pressing Enter:

      (lldb) break set -n some2.Foo.otherFunction(x: A, string: Swift.String) -> () 
      error: unknown or ambiguous option
      

      Sad times. I thought maybe some quotes are missing:

      (lldb) break set -n 'some2.Foo.otherFunction(x: A, string: Swift.String) -> ()'
      Breakpoint 1: no locations (pending).
      WARNING:  Unable to resolve breakpoint to any actual locations.
      (lldb) break set -n "some2.Foo.otherFunction(x: A, string: Swift.String) -> ()"
      Breakpoint 2: no locations (pending).
      WARNING:  Unable to resolve breakpoint to any actual locations.
      

      but no luck.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jw Johannes Weiss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: