Cannot to debug the most files from the folder js/ext via Firefox WebIDE

RESOLVED INVALID

Status

Firefox OS
Gaia::E-Mail
RESOLVED INVALID
2 years ago
2 years ago

People

(Reporter: Denis, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
I’m working on implementation of some specific features in FFOS Email application and I’ve faced with a problem with debugging of some .js files.
At the FirefoxWebIDE debugger I can see and debug some files, for example:
“email\js\mail_app.js” ,
“email\js\query_string.js”,
“email\js\mix.js”,
“email\js\ext\main-frame-setup.js”.
 
Also in the debugger I can see .js files which are placed in the folder “email\js\card”.
 
But looks like it’s not possible to see in the debugger and debug some files which are placed in the folder “email\js\ext” and any files which are placed in subfolders of the folder “email\js\ext”, for example:
“email\js\ext\mailslice.js”,
“email\js\ext\mailbridge.js”,
“email\js\ext\imap\account.js”,
“email\js\ext\imap\folder.js”,
“email\js\ext\pop3\pop3.js”,
“email\js\ext\pop3\sync.js”,
“email\js\ext\ext\browserbox-imap.js”,
“email\js\ext\ext\imap-handler\src\imap-parser.js”,
and etc.

Does anybody can help to debug files placed in the folder “email\js\ext” and in subfolders of the folder “email\js\ext\”?

Comment 1

2 years ago
Hi Email owners, did you meet this issue before? The reporter is on v2.2 of both Gecko and Gaia.
Flags: needinfo?(jrburke)
Flags: needinfo?(asuth)
Those scripts are loaded into a web worker, and traditionally those have been hard to debug using the developer tools. 

In the preferences for the dev tools it looks like there is a "Enable worker debugging (in development)", but when I just tried in Mulet, it did not seem to expose the scripts in the Debugger tab. Given the label on the option, it seems like its success may be variable as it is in development.

The ext/ code is developed in this repo:
https://github.com/mozilla-b2g/gaia-email-libs-and-more

and it has some tests of its own, but uses fake servers for the tests.

In the past, I have used console.log() style of debugging to print out things in the worker. It is not as nice as actual debugger support though.
Flags: needinfo?(jrburke)
Flags: needinfo?(asuth)
I'm going to resolve this since this is a devtools issue and there's nothing to be done in this component and duping will probably just lead to general confusion.

Bug 1003097 is the meta-bug on worker debugging.  It looks like UI support landed in Gecko 41, and fxos v2.2 uses Gecko 37, so that's unlikely to work.  But if developing against trunk using b2g-desktop and/or a real trunk device, it might work.  (Although the low-level worker XPCOM debugger back-end landed in Gecko 36, the actor protocol used by devtools means that remote debugging still requires the landed actor support.)
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.