Skip to content

Commit 82b2c8c

Browse files
committed
enable scheduler debug
1 parent cc8a64b commit 82b2c8c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/qwik/src/core/shared/scheduler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ import { isSsrNode } from '../reactive-primitives/subscriber';
139139
import { logWarn } from './utils/log';
140140

141141
// Turn this on to get debug output of what the scheduler is doing.
142-
const DEBUG: boolean = false;
142+
const DEBUG: boolean = true;
143143

144144
enum ChoreState {
145145
NONE = 0,
@@ -491,7 +491,6 @@ This is often caused by modifying a signal in an already rendered component duri
491491

492492
result
493493
.then((value) => {
494-
DEBUG && debugTrace('execute.DONE', chore, choreQueue, blockedChores);
495494
finishChore(chore, value);
496495
})
497496
.catch((e) => {
@@ -511,7 +510,6 @@ This is often caused by modifying a signal in an already rendered component duri
511510
}
512511
});
513512
} else {
514-
DEBUG && debugTrace('execute.DONE', chore, choreQueue, blockedChores);
515513
finishChore(chore, result);
516514
scheduleBlockedChoresAndDrainIfNeeded(chore);
517515
}
@@ -535,6 +533,7 @@ This is often caused by modifying a signal in an already rendered component duri
535533
chore.$state$ = ChoreState.DONE;
536534
chore.$returnValue$ = value;
537535
chore.$resolve$?.(value);
536+
DEBUG && debugTrace('execute.DONE', chore, choreQueue, blockedChores);
538537
}
539538

540539
function handleError(chore: Chore, e: any) {

0 commit comments

Comments
 (0)