Symbolic breakpoints for Swift should be more intuitive about signatures

Originator:jalkut
Number:rdar://31115942 Date Originated:17-Mar-2017 01:05 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Version 8.3 beta 4 (8W143q)
Classification:UI/Usability Reproducible:Always
 
Summary:
If I set a breakpoint in a Swift app on Data.write, tersely:

(lldb) b Data.write
Breakpoint 23: where = libswiftFoundation.dylib`Foundation.Data.write (to : Foundation.URL, options : __ObjC.NSData.WritingOptions) throws -> (), address = 0x00000001044edf10

It works. However, if I wanted to specify anything more precise about the method I'm breaking on:

(lldb) b Data.write(to:, options:)
Breakpoint 25: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.

It also fails on 
b Data.write (to : Foundation.URL, options : __ObjC.NSData.WritingOptions)

And in fact doesn't succeed until I laborious spell out the whole thing:

(lldb) b libswiftFoundation.dylib`Foundation.Data.write (to : Foundation.URL, options : __ObjC.NSData.WritingOptions) throws -> ()
Breakpoint 26: where = libswiftFoundation.dylib`Foundation.Data.write (to : Foundation.URL, options : __ObjC.NSData.WritingOptions) throws -> (), address = 0x00000001044edf10

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Version 8.3 beta 4 (8W143q)

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!