Move debugger to its own environment