Issue #4975: update debugSlot computing for Canvas

Update debugSlot computing for Canvas