You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is based on a conversation I had on slack with @stefanpenner :
gmunjal [8:50 AM]
If a test is timing out, what is the best way to debug and determine what is preventing “the world from settling”?
gmunjal [8:52 AM]
Update: I put a breakpoint in the app.testHelpers.wait function, and it seems Ember.run.hasScheduledTimers() is returning true. Is there any way to determine what is scheduling a timer?
[9:46]
I have debugged this before, lets see if i can remember
[9:47]
for regular tasks we have a way
gmunjal [9:47 AM]
I did some stepping through hasScheduledTimers, and it was a bit complicated, but I found the backburners._timers property. Problem is it just gives a number
spenner [9:47 AM]
unsure if that way works for later tasks
[9:49] bb._timers should also include the function
[9:49] [0, functionFor0, 1, functionFor1, n, functionForN]
[9:49]
(not perfect, I realize)
[9:49]
in theory toString of that function may help
This is based on a conversation I had on slack with @stefanpenner :
gmunjal [8:50 AM]
If a test is timing out, what is the best way to debug and determine what is preventing “the world from settling”?
gmunjal [8:52 AM]
Update: I put a breakpoint in the app.testHelpers.wait function, and it seems Ember.run.hasScheduledTimers() is returning true. Is there any way to determine what is scheduling a timer?
spenner [9:46 AM]
@GMunjal hmm
[9:46]
I have debugged this before, lets see if i can remember
[9:47]
for regular tasks we have a way
gmunjal [9:47 AM]
I did some stepping through hasScheduledTimers, and it was a bit complicated, but I found the backburners._timers property. Problem is it just gives a number
spenner [9:47 AM]
unsure if that way works for
later
tasks[9:49]
bb._timers
should also include the function[9:49]
[0, functionFor0, 1, functionFor1, n, functionForN]
[9:49]
(not perfect, I realize)
[9:49]
in theory toString of that function may help
[9:51]
@GMunjal i think whats missing is, for
run.later
we don’t do the same thing we do forrun.schedule
and optionally save a stack: https://github.com/ebryn/backburner.js/blob/master/lib/backburner/index.js#L280GitHub
ebryn/backburner.js
backburner.js - A rewrite of the Ember.js run loop as a generic microlibrary
The text was updated successfully, but these errors were encountered: