facebook / chisel

Chisel is a collection of LLDB commands to assist debugging iOS apps.
MIT License
9.12k stars 804 forks source link

Chisel not working for me. #250

Closed anil0605 closed 4 years ago

anil0605 commented 5 years ago

Hi Team,

I have tried to run chisel with my XCode 9.4.1 I have created a file .lldbinit inside the project folder with the contents command script import /usr/local/opt/chisel/libexec/fblldb.py

I have checked the above file path and it's correct also. Please find the below screenshot if that helps.

screen shot 2018-10-08 at 5 48 08 pm

Could anyone please help. I really want to use all of these debugging commands in my project.

DerekSelander commented 5 years ago

@anil0605, importing can fail for a number of reasons. Try running that command script import ... inside the LLDB console while your app is running and check out the potential error message. If you get an error message that will be give the Chisel maintainers more context for a fix.

kastiglione commented 5 years ago

.lldbinit inside the project folder with the contents

As far as I know this does not work. Can you try adding the command script import command to your .lldbinit in your home directory (~/.lldbinit)?

279961172 commented 4 years ago

(lldb) script import /path/to/fblldb.py File "", line 1 import /path/to/fblldb.py ^ SyntaxError: invalid syntax (lldb)

Not support python 3.7?

kastiglione commented 4 years ago

You're missing command. It should command script import

279961172 commented 4 years ago

You're missing command. It should command script import

(lldb) command script import /path/to/fblldb.py error: module importing failed: invalid pathname (lldb)

kastiglione commented 4 years ago

/path/to/fblldb.py is a placeholder in the documentation, you have to substitute your real path to wherever fblldb.py is on your computer.