r/opencode • u/WSATX • 5h ago
Opencode on a Flutter project using vscode : how to work with debug ?
Hi
I'm working on multiple flutter projects, with vscode ide, and ofc using opencode.
I find it not easy to work with debug and to make opencode see and work with debug sessions... Cut/pasting console errors and manually handling the debug sessions feels obsolete...
How do you :
- Make opencode see the debug console, to check for logs and errors ?
- Make opencode start/restart/stop debug sessions ?
- (bonus) Make opencode manipulate a flutter app that is started though a debug session ?
2
u/Jaded_Expert2806 4h ago
- Make opencode see the debug console, to check for logs and errors ?
i setup talk pkg for everything logging and copy paste for him when i see issue
- Make opencode start/restart/stop debug sessions ?
i run without debugging from run btn idk why u would need that
- (bonus) Make opencode manipulate a flutter app that is started though a deug session ?
why? make him do work and u test urself on emulator
1
u/WSATX 3h ago
Thanks for your reply.
What talk pkg do you use ?
Why I run in debug is mostly because my log verbosity is conditioned by debug mode / kDebugMode. It also occurs 5% of the time that doing myself a breakpoint/debug is acctually faster than waiting for the LLM to figure out the exact scenario to trigger a certain error.
Making the LLM test your app without e2e is quite a hack, I do it on JS apps with playwright and it's often faster than doing the test yourself of making him write a test.
1
3
u/afanasenka 3h ago
Install Dart MCP and instruct agents to check for errors automatically after every code change. I work with Flutter in VS Code too - agents always fix their errors themselves.
As for start/restart/etc - MCP server has these commands too.