1. A method for debugging a system, the method comprises: checking if a scheduler status variable indicates a scheduler is in a normal mode, such that the scheduler status variable indicates that the scheduler, in the normal mode, executes at least one scheduling iteration; updating, during each of a plurality of scheduling iterations in the normal mode, a queue starvation watermark value of each of a plurality of task data structures that is not eligible to move to a running tasks queue, until a first queue starvation watermark value of a first task data structure of the plurality of the task data structures reaches a queue starvation watermark threshold; generating a task starvation indication if during an additional number of additional scheduling iterations, the first task data structure is still prevented from being moved to the running tasks queue, wherein the additional number is responsive to a task starvation watermark; freezing sorted tasks queues that do not store the first task data structure or otherwise ignoring the task data structures stored in other sorted tasks queues during the additional number of the scheduling iterations; controlling, by a debugger, a processing entity execution flow of a processing entity; setting, by the debugger or the processing entity, a value of a scheduler control variable accessible by the scheduler, wherein the debugger can set the value of the scheduler control variable and the processing entity can set the value of the scheduler control variable; and determining, by the scheduler, the scheduler execution flow of the scheduler in response to the setting the value of the scheduler control variable; checking if the scheduler status variable indicates the scheduler is not in the normal mode; and performing, by the debugger, a debugging operation in response to the scheduler status variable indicating that the scheduler is not in the normal mode.