I need debug a web application in Firefox for "Android". I am trying to connect the device to desktop Firefox, but always got the error "unexpected error".
I have performed all steps of https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Firefox_for_Android
I installed the Android SDK Tools and Platforms, and the device is correctly detected with the adb command.
I enabled remote debugging on desktop Firefox and Firefox for Android
I enabled remote USB debugging on the device.
The device is connected to the original cable to my PC.
I run the command adb forward tcp: 6000 tcp: 6000 on the command line without problems.
Finally, the developer desktop Firefox menu, I choose the connect option. Page appears to connect to localhost: 6000, and clicking on the "connect" button, the error "unexpected error" appears.
Any ideas?
Found the solution!
Instead of typing:
type in the following:
The first command is for firefox 34, for latter versions, you need the second.
Also, according to the docs: