-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way to toggle debug painting? #112
Comments
screenshot will help. |
Sorry, screenshot of what? Flutter supports toggling debug painting by pressing "p" in the terminal. I've looked through the docs, and so far as I can tell this is one of the only debugging capabilities that I can't find exposed through either lsp-dart or dap. To clarify, this isn't something that I think is broken, I'm just wondering if it's supported at all (and if it's not currently, if this would be something worth adding). |
@jkaye2012 I use hover (I suggest you take a look, it's awesome) to develop in flutter with lsp-dart, I usually don't use dap with flutter, but answering your question, it's really missing, although we can easily follow the hotReload/hotRestart feature which works and implement that support for the other missing features during dap: https://github.com/emacs-lsp/lsp-dart/blob/master/lsp-dart-dap.el#L340-L346 |
The dap route is what I was thinking as well. Would be really cool! |
I'll try to take a look and maybe add the missing ones in the weeked |
If anyone is interested I implemented this for https://github.com/akinsho/flutter-tools.nvim which is the neovim cousin of this project It involves listening to the
It's a bug more involved than the simple hotReload / Restart because you have to target the flutter isolate, but it allows for a bunch of other sweet stuff, like override the platform, or slowing animations... Sorry I can't provide an implementation, I'm not very good at elisp Lua implementation is here if needed : https://github.com/akinsho/flutter-tools.nvim/blob/8c88c4cd9ad3f5b72335451744f7c07d374e3fa6/lua/flutter-tools/runners/dap_runner.lua |
Thank you @clement-buchart that should certainly help with this on lsp-dart :) |
Hi all,
Thanks for this amazing package. It's an unparalleled development experience, even by Emacs standards.
I was wondering if there is any way to toggle Flutter's debug painting either through lsp or dap?
Thanks!
The text was updated successfully, but these errors were encountered: