mozilla / fireplay-sublime

A fantastic plugin connecting your favorite editor with your favorite web debugger
47 stars 9 forks source link

Firefox and FirefoxOS autodiscovery and runner #41

Closed nicola closed 10 years ago

nicola commented 10 years ago

It automatically detects ports to connect for Firefox and FirefoxOS. However the dependency with psutil is quite tricky to solve.

To install ps util

wget https://pypi.python.org/packages/source/p/psutil/psutil-2.1.1.tar.gz
tar xvf psutil-2.1.1.tar.gz
cd psutil*
make install
nicola commented 10 years ago

I might avoid psutil, by just providing temporary support for UNIX systems.

nicola commented 10 years ago

Now a firefox instance is launched with mozrunner. Maybe mozrunner could implement a b2g too?

sole commented 10 years ago

Oh so you can reliable include mozrunner (part of mozbase) and that way you don't have to install psutils? Or do you still need to install psutils?

What do you mean with mozrunner "implementing a b2g too"?

nicola commented 10 years ago

Sole, I am talking about @campd mozrunner in python-fxdevtools. I don't know what you mentioned. Since we are using a very little subset of psutils, we might even just execute command line commands from python like lsof on mac and linux and avoid psutil, but for now psutil make me focus on the product, rather than the dependencies I have

whimboo commented 10 years ago

What do you mean with mozrunner "implementing a b2g too"?

Mozrunner supports b2g for a long time. Maybe the version @campd is using needs an update? Also in regards of psutils there is mozsystemmonitor which is running operations via psutils. That might help you to simplify your code.

nicola commented 10 years ago

@whimboo, my choice of using straight away li terminal commands such as netstat or lsof is that it is the only subset of psutil that I need, (psutil requires compilation which is a step more fore the user).

Is there anything there I could look at for mozrunner?

whimboo commented 10 years ago

Best you look at the documentation, which is up-to-date with the latest release. Here the specific docs for B2G: http://mozbase.readthedocs.org/en/latest/mozrunner.html#using-a-device-runner

nicola commented 10 years ago

This requires adb, while with the implementation in Fireplay as it is now, there is no need of adb.