Detach XCode debugger while debugging Flutter projects

For a while, when you debug Flutter projects, XCode is launched. It wasn’t always like this. The issue is that when your Mac locks the screen, you lose connection to your iPhone and debugging stops.

You can detach the debugger from XCode to close it and continue debugging.

To accomplish this, navigate to the debug menu in XCode and click Detach from Runner.
This will improve your application’s performance during debugging too.

--

--