snare / voltron

A hacky debugger UI for hackers
MIT License
6.18k stars 414 forks source link

"voltron view ..." fails to connect: "No such file or directory" #42

Closed jesperes closed 10 years ago

jesperes commented 10 years ago

I tried following the installation instructions, and managed to get lldb started and dbgentry.py loaded through .lldbinit:

Current executable set to './wtdx' (x86_64).
(lldb) voltron start
voltron start 
Starting voltron 
Stop hook #1 added.
(lldb) 

But when I try to start a view using e.g. voltron view bt, I get the error message Failed connecting to server:[Errno 2] No such file or directory.

Did I miss a setup step?

(Running Linux Mint, let me know if you need any more details about the system.)

richo commented 10 years ago

You'll need to start the inferior, because reasons.

try:

b main
r
jesperes commented 10 years ago

It doesn't help.

b main
r
voltron update

Still "no such file or directory".

snare commented 10 years ago

Yeah something’s broken. Investigating…

On 19 Dec 2013, at 7:38 pm, Jesper Eskilson notifications@github.com wrote:

It doesn't help.

b main r voltron update Still "no such file or directory".

— Reply to this email directly or view it on GitHub.

snare commented 10 years ago

I am terrible at computers and I broke scruffy. If you run both the debugger and the view with the same pwd it should work OK.

On 19 Dec 2013, at 8:45 pm, snare@ho.ax wrote:

Yeah something’s broken. Investigating…

On 19 Dec 2013, at 7:38 pm, Jesper Eskilson notifications@github.com wrote:

It doesn't help.

b main r voltron update Still "no such file or directory".

— Reply to this email directly or view it on GitHub.

jesperes commented 10 years ago

Ok, thanks. Now it works!

snare commented 10 years ago

Excellent! I’m fixing scruffy atm; you’ll need to install the updated scruffy but voltron won’t change.

On 19 Dec 2013, at 9:00 pm, Jesper Eskilson notifications@github.com wrote:

Ok, thanks. Now it works!

— Reply to this email directly or view it on GitHub.

jesperes commented 10 years ago

What's scruffy? :)

snare commented 10 years ago

Scruffy is the environment lib thing that voltron uses to manage its config files and whatnot (and by that I mean I factored the code out of voltron and calculon into another library because DRY)

If you install the latest revision of scruffy, voltron should work properly regardless of cwd (it was creating the voltron.sock file in the current directory instead of in ~/.voltron where it’s meant to create it).

You can grab it here: https://github.com/snarez/scruffy

On 19 Dec 2013, at 9:05 pm, Jesper Eskilson notifications@github.com wrote:

What's scruffy? :)

— Reply to this email directly or view it on GitHub.