jbyuki / one-small-step-for-vimkind

Debug adapter for Neovim plugins
MIT License
409 stars 11 forks source link

Stdout (print, io.write) doesn't seem to work #42

Open TheJayGatsby opened 11 months ago

TheJayGatsby commented 11 months ago

I am using one-small-step-for-vimkind in a LazyVim setup, altogether with nvim-dap and nvim-dap-ui.

Almost everything works fine (breakpoints, step-into, widgets, ...). However, the output to stdout (either via print or io.write) doesn't apper in the dap-repl or DAP Console.

Any ideas? Or this is the expected behavior?

jbyuki commented 11 months ago

Hello,

Yes, this is expected behaviour. You should look into the issue history. There is one that go into details about this very issue. Printing to the dap repl is not as easy as it seems.

Le jeu. 21 déc. 2023 à 4:18 PM, THE Jay Gatsby @.***> a écrit :

I am using one-small-step-for-vimkind in a LazyVim setup, altogether with nvim-dap and nvim-dap-ui.

Almost everything works fine (breakpoints, step-into, widgets, ...). However, the output to stdout (either via print or io.write) don't apper in the dap-repl or DAP Console.

Any ideas? Or this is the expected behavior?

— Reply to this email directly, view it on GitHub https://github.com/jbyuki/one-small-step-for-vimkind/issues/42, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJBOFNTZ2GY2IVRDVLI4DTYKRHLRAVCNFSM6AAAAABA6RXY7WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TENRRGQ3DONI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

TheJayGatsby commented 11 months ago

Thanks. I searched the closed issues before open this one and didn't find any one related. There was one about printing global variables, but with it was closed without details. Can you please reference which other issue has the details related to this problem? Thanks.

jbyuki commented 11 months ago

Look for issue #13. Second answer is on it.

Le jeu. 21 déc. 2023 à 7:01 PM, THE Jay Gatsby @.***> a écrit :

Thanks. I searched the closed issues before open this one and didn't find any one related. There was one about printing global variables, but with it was closed without details. Can you please reference which other issue has the details related to this problem? Thanks.

— Reply to this email directly, view it on GitHub https://github.com/jbyuki/one-small-step-for-vimkind/issues/42#issuecomment-1866720616, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJBOFLXBBZSA2WOWXBKGETYKR2PZAVCNFSM6AAAAABA6RXY7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRWG4ZDANRRGY . You are receiving this because you commented.Message ID: @.***>

jbyuki commented 4 months ago

TODO: