Hi,
When debugging Flutter with Cursor Flutter nearly always crashes (although Cursor remains running) and I see a messing in the debug console saying “lost connection to device”), especially after hitting a breakpoint.
This doesn’t happen with VSCode, hence why thinking its Cursor specific rather than my code etc…
The issue seems similar to this thread where the poster said they had resolved it however the solution they found doesn’t fix it for me.
Flutter debug always disconnect in version 0.40.4 - Bug Report - Cursor Community Forum
I’ve tried downgrading Cursor which didn’t work, and I’ve also tried downgrading the Flutter and dart extensions within Cursor to 3.98.0.
Interestingly it all works fine in VS Code Insiders with the most recent version of the extensions.
I first noticed this issue earlier a couple of days ago but at that point it would only crash when debugging a specific part of my code so I ignored it, now it crashes if I place breakpoints anywhere and often when the debugger is attached without hitting a breakpoint. Before first noticing it earlier in the week all was fine and I’d debugged the same Flutter app many times.
I’d really like go get it working again as going back to vscode has made me realise the productivity increase I get through Cursor.
Thanks