[TASK] Remove debug.ts and move its content to page.ts