square / PonyDebugger

Remote network and data debugging for your native iOS app using Chrome Developer Tools
Other
5.87k stars 595 forks source link

Using in Swift #137

Closed tonglil closed 9 years ago

tonglil commented 9 years ago

I have linked the libraries and the set up outlined in "manual installation". However when I try to implement the actual debugger instance I don't know how to import PonyDebugger into Swift so that it recognizes "PDDebugger".

        let pony = PDDebugger.defaultInstance()
        pony.connectToURL(NSURL.URLWithString("ws://localhost:9000/device"))
        pony.enableNetworkTrafficDebugging()
        pony.enableCoreDataDebugging()
wlue commented 9 years ago

Inside your ObjC-Swift bridging header, make sure you add the PonyDebugger import.