I realized that for a very basic lua debugging the most simple way is to write directly the code in the command line (no plugin, no DAP).
For example:
:lua print(vim.inspect(vim.api.nvim_list_wins()))
But debugging/tests would be much more convenient if I could have something like the command line in a dedicated window.
Is that possible?