lsp-dart icon indicating copy to clipboard operation
lsp-dart copied to clipboard

the exception backtrace log of flutter run not output to `*Flutter run out` buffer.

Open zw963 opened this issue 3 years ago • 2 comments

Today i spent hours for find out one bug in my code.

this bug give me a quite strange output in emulator screen, no clue, as following screenshot.

image

Finally, i found the reason. as the following exception report said when run directly from console.

image

A RenderViewport expected a child of type RenderSliver but received a child of type RenderConstrainedBox.

As you can see, those log is quite useful for find out why the code is broken in this case, In fact, i resolve this bug when i try to use VSCode to build this project.

it output like this:

image

Fix is quite easy, but i have to switch to code or run from command line to find out those useful info.

image

Maybe those exception log output somewhere i never notice?

Thank you.


Updated.

Add lsp-dart log screenshot, no backtrace log.

image

zw963 avatar Feb 09 '22 17:02 zw963

We need to debug what dap outputs, I'm busy lately so fell free to dive into this

ericdallo avatar Feb 09 '22 18:02 ericdallo

I'm busy lately so fell free to dive into this

Sorry, i consider this beyond my ability, for more simpler, e.g. #143, i will try later when free.

zw963 avatar Feb 09 '22 18:02 zw963