johnno1962 / injectionforxcode

Runtime Code Injection for Objective-C & Swift
MIT License
6.55k stars 565 forks source link

Debug console not working after injection #209

Open bonyadmitr opened 7 years ago

bonyadmitr commented 7 years ago

I cannot use debug console if injection had been set (with file changing). 'self' is empty and get errors like this one:

error: <EXPR>:3:1: error: use of unresolved identifier 'self'
self
^~~~

screen shot 2017-04-12 at 01 05 42

Maybe i missed it in docs.

johnno1962 commented 7 years ago

Thanks for reporting this. I’d not seen this before. I’m afraid the interaction with the debugger (e.g. breakpoints) may be limited after injection.