Closed Bug 1192896 Opened 9 years ago Closed 5 years ago

Worker debugger doesn't work on http://html5demos.com/worker

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ehsan.akhgari, Unassigned)

References

(Blocks 2 open bugs)

Details

STR:

1. Enable worker debugging.
2. Go to http://html5demos.com/worker.
3. Open the debugger, click on the worker, and set a breakpoint in the beginning of the script.
4. Click Start Worker in the page.

The breakpoint is never hit.
Is there an easy way to run the same script outside of the worker / on the main thread? Would interested in if this is actually related to worker debugging or is just a breakpoints bug.
I have no idea, sorry.
Assignee: nobody → ejpbruel
Status: NEW → ASSIGNED
I'm not sure if this bug is still valid:

 - setting a breakpoint on line 7 never breaks, but the worker has already started by then. This code isn't re-run, right?

 - setting a breakpoint on eg line 18 inside the compute function *does* work perfectly.

Is there some other bug for debugging worker initialization?
Flags: needinfo?(ejpbruel)
(In reply to Jeff Griffiths (:canuckistani) (:⚡︎) from comment #3)
> I'm not sure if this bug is still valid:
> 
>  - setting a breakpoint on line 7 never breaks, but the worker has already
> started by then. This code isn't re-run, right?
> 
>  - setting a breakpoint on eg line 18 inside the compute function *does*
> work perfectly.
> 
> Is there some other bug for debugging worker initialization?

There is no other bug for debugging worker initialization. It's something that's on my radar though, so I'll probably open a bug for it some time soon. Feel free to beat me to it if you'd like.
Flags: needinfo?(ejpbruel)
Assignee: ejpbruel → nobody
Status: ASSIGNED → NEW
Product: Firefox → DevTools

The site linked in the STR is taken over by a 3rd party, but testing on https://afshinm.github.io/50k/ works as expected with bug 1520698 landed.

Please re-open if you find other issues with worker initialization.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.