Closed 8secz-johndpope closed 5 years ago
Hi, I'm not sure what you are looking to do but if you want to introduce a delegate your best bet is to try subclassing the SwiftTrace.Patch class and change the SwiftTrace.patchFactory to override onEntry or onExit.
in flight / on device logging https://github.com/CocoaDebug/CocoaDebug the instructions you've given in the readme should help - will test tomorrow. thx
https://github.com/CocoaDebug/CocoaDebug/tree/master/Example_Swift
it has a line to override print stuff https://github.com/CocoaDebug/CocoaDebug/blob/master/Example_Swift/AppDelegate.swift#L40
how can I reroute swift to this?
I'm thinking we need a delegate to pass back to app - or is there a better way you can think of?
this didn't work