mozilla / fireplay-sublime

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

Autodiscovery Firefox open ports #11

Closed nicola closed 10 years ago

nicola commented 10 years ago

Things can be done through ADB. Is there a way to avoid users to install ADB?

Maybe starting a new browser/b2g instance? Maybe scanning open ports signed firefox? At the moment this requires manual tweaking.

It will be a bug until the user will be able to set the port.

nicola commented 10 years ago

https://bugzilla.mozilla.org/show_bug.cgi?id=1043396#c1

or

the only "exhaustive" approach i can think of is to use OS commands to list the listening ports

nicola commented 10 years ago

@jryans on irc:

lsof -i -n -P -sTCP:LISTEN | grep b2g-bin

nicola commented 10 years ago

Yuhu! I implemented auto-discovery for FirefoxOS simulators here: https://gist.github.com/nicolagreco/63bb6868cfcd7bab81f6/