Question

Is there a way to connect gdb to hopper, then load a dylyb that is loaded by an app and then run the app while stepping through the dylib code? is there a way to do this?

Was it helpful?

Solution 2

I asked the developer and got a reply indicating that this feature (debugging a dylib), is not available in the current version.

The best way to go for now seems to be to use the available tools to find the right place to edit the code and then reassemble it.

OTHER TIPS

Today (2020) actually you can debug dylibs by opening them in a separate window before starting debugger. When you go back in the callstack window it shows the actual code in the window of dylib. You can also place breakpoints and do whatever you want in it.

For debugging to work you should remove the codesigning of the main executable.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top