moved debuggerAttach inside the fullscreenDebugHooks function