Debug main