facebook / chisel

Chisel is a collection of LLDB commands to assist debugging iOS apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chisel not working for me.

anil0605 opened this issue · comments

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.

commented

@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.

.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)?

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

Not support python 3.7?

You're missing command. It should command script import

You're missing command. It should command script import

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

/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.