Comments (3)
I don't know why this would happen.
I am wondering if there are any ways I can using <C-d>
to call dap.continue()
in all languages that I have configured.
For example:
in C, I press <C-d>
, dap starting to work.
in Python, I press <C-d>
, dap starting to work.
in Lua, I press <C-d>
, dap starting to work too (not asking me the host or port, set it default to 127.0.0.1 and 8088)
I wish "osv" can automatic start when I press <C-d>
in lua.
i have tried to using autocmd to reach that for me.
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = "lua",
callback = function ()
vim.keymap.set('n', '<C-d>', require "osv".run_this, { noremap = true, silent = true })
end
})
but i will got this messages
Couldn't connect to 127.0.0.1:8088: ECONNREFUSED
here's my config
dap.configurations.lua = {
{
type = 'nlua',
request = 'attach',
name = "Attach to running Neovim instance",
host = '127.0.0.1',
port = 8088,
}
}
dap.adapters.nlua = function (callback, config)
callback({ type = 'server', host = config.host, port = config.port })
end
from one-small-step-for-vimkind.
Hi,
So one-small-step-for-vimkind is not really meant to be used as a debugger for vanilla lua scripts. It was specifically designed to debug neovim plugins. Meaning you still need to manually start another instance + start the server with launch()
. You can still have a shortcut to dap.continue()
in the debugger instance, which I also do. Maybe that clears some issues.
There is WIP ways to automatically start another neovim instance, and the debugger automatically here but this only works for linux/alacritty currently.
from one-small-step-for-vimkind.
Thanks!
from one-small-step-for-vimkind.
Related Issues (20)
- How to debug key mapping or auto commands HOT 5
- How to debug Lua scripts in Unreal Engine? HOT 1
- Cannot launch with another rpc client HOT 4
- No response or event received HOT 3
- Get error when restart session HOT 1
- Evaluation only displays an empty rectangle HOT 6
- Plugin does not support wrapped `nvim` executable? HOT 6
- nvim gets spawned recursively? HOT 4
- Repl evaluate doesn't have access to function upvalues HOT 2
- Frames for pre-compiled sources report wrong path/line/column HOT 4
- Debugger couldn't connect to 127.0.0.1:8086: ECONNREFUSED while debugging lazy plugins HOT 2
- Stdout (print, io.write) doesn't seem to work HOT 3
- Launching osv via cli args HOT 2
- Fix inspect variable with tables in nvim-dap
- [BUG] Attaching to running instance doesn't work (fzf-lua) HOT 18
- require"osv".launch({port = 8086}) E5108: Error executing lua Vim:Error invoking 'nvim_exec_lua' on channel 18:
- Cannot launch `osv` at the beginning of a neovim configuration HOT 3
- Connect OSV to Plenary test harness HOT 3
- osv Freeze nvim after `:lua require"osv".run_this()` on NVIM v0.11.0-dev-19+g0f4f7d32c HOT 3
- Dependency requirements? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from one-small-step-for-vimkind.