Connect to debugger before collecting garbage in test extension