Closed AlphabetsAlphabets closed 1 year ago
Don't looks like debugger issue. As you have been already advised in https://github.com/mfussenegger/nvim-dap/issues/939, I propose you fill issue in debug adapter you are using.
Note, netcoredbg is debugger only that support GDB/MI and VSCode protocols for IDE/adapters, but not debug adapter itself.
Don't looks like debugger issue. As you have been already advised in mfussenegger/nvim-dap#939, I propose you fill issue in debug adapter you are using.
Note, netcoredbg is debugger only that support GDB/MI and VSCode protocols for IDE/adapters, but not debug adapter itself.
Ohh I see. Thank you. I thought this was the debug adapter. Do you know where I can find the adapter?
@AlphabetsAlphabets can nvim-dap show log of all vscode protocol commands sent to netcoredbg? As I see from nvim-dap wiki on github, they use term "debug adapter" for netcoredbg.
@AlphabetsAlphabets can nvim-dap show log of all vscode protocol commands sent to netcoredbg? As I see from nvim-dap wiki on github, they use term "debug adapter" for netcoredbg.
Yes it can. I'll just need to run it and paste the log. @gbalykov here is the log.
[ INFO ] 2023-05-05T15:27:26Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:28:01Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:28:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:28:31Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:30:23Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:35:04Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:41:28Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:44:49Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:31:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:36:40Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:36:40Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:12Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:12Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:18Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:18Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:26Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:26Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:06Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:06Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:06Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 3,
line = 312,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:12Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:12Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:12Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 3,
line = 312,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:27Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:27Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:27Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 3,
line = 312,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:40Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:40Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:40Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 3,
line = 312,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-11T11:10:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 44,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
Although I'm unsure if it's what you want.
This is not VSCode protocol log, looks like some internal log.
id = 1,
line = 44,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
looks close to debugger's VSCode protocol replay to breakpoint setup command, that mean "breakpoint was added, will be resolved at assembly(code) loading" (that also mean debugger works fine, but you setup breakpoint before real debuggee process execution start or attach). This looks Ok, almost all IDE have same behaviour with breakpoints setup before debuggee start.
In the same time "Server rejected breakpoint"
looks like issue related to some adapter/plugin/extension/... that interact with debugger.
As @viewizard mentioned in https://github.com/Samsung/netcoredbg/issues/119#issuecomment-1543580295, breakpoints that you have set are not yet resolved, which is reported by netcoredbg with The breakpoint is pending and will be resolved when debugging starts
. They will be resolved later during execution, and Server rejected breakpoint
log line on nvim-dap should be treated like a warning, because this debugger response seems correct. So, this log seems unrelated to window closing that you see.
I see. Thank you @gbalykov
This is the log before I started the debugging session
[ INFO ] 2023-05-05T15:27:26Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:28:01Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:28:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:28:31Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:30:23Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:35:04Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:41:28Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-05T15:44:49Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 49,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:31:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:36:40Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:36:40Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:12Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:12Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:18Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:18Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:26Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:37:26Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:06Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:06Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:06Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 3,
line = 312,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:12Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:12Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:12Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 3,
line = 312,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:27Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:27Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:27Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 3,
line = 312,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:40Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 41,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:40Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 2,
line = 304,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-07T16:38:40Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 3,
line = 312,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ INFO ] 2023-05-11T11:10:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 44,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
This is the log after I started the debugging session. I hope this would be more useful.
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1275 ] "Spawning debug adapter" {
args = { "--interpreter=vscode" },
command = "C:\\Users\\yapji\\lsp\\netcoredbg\\netcoredbg.exe",
type = "executable"
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1588 ] "request" {
arguments = {
adapterID = "nvim-dap",
clientId = "neovim",
clientname = "neovim",
columnsStartAt1 = true,
linesStartAt1 = true,
locale = "en_US",
pathFormat = "path",
supportsProgressReporting = true,
supportsRunInTerminalRequest = true,
supportsStartDebuggingRequest = true,
supportsVariableType = true
},
command = "initialize",
seq = 0,
type = "request"
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
capabilities = {
exceptionBreakpointFilters = { {
filter = "all",
label = "all"
}, {
filter = "user-unhandled",
label = "user-unhandled"
} },
supportTerminateDebuggee = true,
supportsCancelRequest = true,
supportsConditionalBreakpoints = true,
supportsConfigurationDoneRequest = true,
supportsExceptionFilterOptions = true,
supportsExceptionInfoRequest = true,
supportsExceptionOptions = false,
supportsFunctionBreakpoints = true,
supportsSetExpression = true,
supportsSetVariable = true,
supportsTerminateRequest = true
}
},
event = "capabilities",
seq = "1",
type = "event"
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = vim.empty_dict(),
event = "initialized",
seq = "2",
type = "event"
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
exceptionBreakpointFilters = { {
filter = "all",
label = "all"
}, {
filter = "user-unhandled",
label = "user-unhandled"
} },
supportTerminateDebuggee = true,
supportsCancelRequest = true,
supportsConditionalBreakpoints = true,
supportsConfigurationDoneRequest = true,
supportsExceptionFilterOptions = true,
supportsExceptionInfoRequest = true,
supportsExceptionOptions = false,
supportsFunctionBreakpoints = true,
supportsSetExpression = true,
supportsSetVariable = true,
supportsTerminateRequest = true
},
command = "initialize",
request_seq = 0,
seq = "3",
success = true,
type = "response"
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1588 ] "request" {
arguments = {
breakpoints = { {
line = 139
} },
lines = { 139 },
source = {
name = "XarcadeAccountServiceTest.cs",
path = "C:\\Users\\yapji\\projects\\prox\\xarcade\\Xarcade\\Test\\XarcadeAccountServiceTest.cs"
},
sourceModified = false
},
command = "setBreakpoints",
seq = 1,
type = "request"
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1588 ] "request" {
arguments = {
name = "launch - netcoredbg",
program = "C:\\Users\\yapji\\projects\\prox\\xarcade\\Xarcade\\Test\\bin\\Debug\\netcoreapp5.0\\Xarcade.Test.dll",
request = "launch",
type = "coreclr"
},
command = "launch",
seq = 2,
type = "request"
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
breakpoints = { {
id = 1,
line = 139,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
} }
},
command = "setBreakpoints",
request_seq = 1,
seq = "4",
success = true,
type = "response"
}
[ INFO ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 139,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1588 ] "request" {
arguments = {
filters = {}
},
command = "setExceptionBreakpoints",
seq = 3,
type = "request"
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = vim.empty_dict(),
command = "launch",
request_seq = 2,
seq = "5",
success = true,
type = "response"
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = vim.empty_dict(),
command = "setExceptionBreakpoints",
request_seq = 3,
seq = "6",
success = true,
type = "response"
}
[ DEBUG ] 2023-05-15T07:30:29Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1588 ] "request" {
command = "configurationDone",
seq = 4,
type = "request"
}
[ DEBUG ] 2023-05-15T07:30:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
isLocalProcess = true,
name = "dotnet",
startMethod = "launch",
systemProcessId = 11972
},
event = "process",
seq = "7",
type = "event"
}
[ DEBUG ] 2023-05-15T07:30:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = vim.empty_dict(),
command = "configurationDone",
request_seq = 4,
seq = "8",
success = true,
type = "response"
}
[ DEBUG ] 2023-05-15T07:30:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
module = {
id = "61f695f6-91c2-45d1-9d01-5128e4e8bedc",
name = "System.Private.CoreLib.dll",
path = "C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\5.0.17\\System.Private.CoreLib.dll",
symbolStatus = "Symbols not found."
},
reason = "new"
},
event = "module",
seq = "9",
type = "event"
}
[ DEBUG ] 2023-05-15T07:30:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
reason = "started",
threadId = 3924
},
event = "thread",
seq = "10",
type = "event"
}
[ DEBUG ] 2023-05-15T07:30:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
module = {
id = "4426d91c-e952-4681-9325-2df627655d57",
name = "Xarcade.Test.dll",
path = "C:\\Users\\yapji\\projects\\prox\\xarcade\\Xarcade\\Test\\bin\\Debug\\netcoreapp5.0\\Xarcade.Test.dll",
symbolStatus = "Symbols loaded."
},
reason = "new"
},
event = "module",
seq = "11",
type = "event"
}
[ DEBUG ] 2023-05-15T07:30:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
breakpoint = {
endLine = 140,
id = 1,
line = 140,
message = "",
source = {
name = "XarcadeAccountServiceTest.cs",
path = "C:\\Users\\yapji\\projects\\prox\\xarcade\\Xarcade\\Test\\XarcadeAccountServiceTest.cs"
},
verified = true
},
reason = "changed"
},
event = "breakpoint",
seq = "12",
type = "event"
}
[ DEBUG ] 2023-05-15T07:30:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
module = {
id = "ec92ce44-afcd-47f6-9f67-d1646d7e0f5d",
name = "System.Runtime.dll",
path = "C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\5.0.17\\System.Runtime.dll",
symbolStatus = "Symbols not found."
},
reason = "new"
},
event = "module",
seq = "13",
type = "event"
}
[ DEBUG ] 2023-05-15T07:30:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
reason = "started",
threadId = 2992
},
event = "thread",
seq = "14",
type = "event"
}
[ DEBUG ] 2023-05-15T07:30:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = {
exitCode = 0
},
event = "exited",
seq = "15",
type = "event"
}
[ DEBUG ] 2023-05-15T07:30:30Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 1 {
body = vim.empty_dict(),
event = "terminated",
seq = "16",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1275 ] "Spawning debug adapter" {
args = { "--interpreter=vscode" },
command = "C:\\Users\\yapji\\lsp\\netcoredbg\\netcoredbg.exe",
type = "executable"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1588 ] "request" {
arguments = {
adapterID = "nvim-dap",
clientId = "neovim",
clientname = "neovim",
columnsStartAt1 = true,
linesStartAt1 = true,
locale = "en_US",
pathFormat = "path",
supportsProgressReporting = true,
supportsRunInTerminalRequest = true,
supportsStartDebuggingRequest = true,
supportsVariableType = true
},
command = "initialize",
seq = 0,
type = "request"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
capabilities = {
exceptionBreakpointFilters = { {
filter = "all",
label = "all"
}, {
filter = "user-unhandled",
label = "user-unhandled"
} },
supportTerminateDebuggee = true,
supportsCancelRequest = true,
supportsConditionalBreakpoints = true,
supportsConfigurationDoneRequest = true,
supportsExceptionFilterOptions = true,
supportsExceptionInfoRequest = true,
supportsExceptionOptions = false,
supportsFunctionBreakpoints = true,
supportsSetExpression = true,
supportsSetVariable = true,
supportsTerminateRequest = true
}
},
event = "capabilities",
seq = "1",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = vim.empty_dict(),
event = "initialized",
seq = "2",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
exceptionBreakpointFilters = { {
filter = "all",
label = "all"
}, {
filter = "user-unhandled",
label = "user-unhandled"
} },
supportTerminateDebuggee = true,
supportsCancelRequest = true,
supportsConditionalBreakpoints = true,
supportsConfigurationDoneRequest = true,
supportsExceptionFilterOptions = true,
supportsExceptionInfoRequest = true,
supportsExceptionOptions = false,
supportsFunctionBreakpoints = true,
supportsSetExpression = true,
supportsSetVariable = true,
supportsTerminateRequest = true
},
command = "initialize",
request_seq = 0,
seq = "3",
success = true,
type = "response"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1588 ] "request" {
arguments = {
breakpoints = { {
line = 139
} },
lines = { 139 },
source = {
name = "XarcadeAccountServiceTest.cs",
path = "C:\\Users\\yapji\\projects\\prox\\xarcade\\Xarcade\\Test\\XarcadeAccountServiceTest.cs"
},
sourceModified = false
},
command = "setBreakpoints",
seq = 1,
type = "request"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1588 ] "request" {
arguments = {
name = "launch - netcoredbg",
program = "C:\\Users\\yapji\\projects\\prox\\xarcade\\Xarcade\\Test\\bin\\Debug\\netcoreapp5.0\\Xarcade.Test.dll",
request = "launch",
type = "coreclr"
},
command = "launch",
seq = 2,
type = "request"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
breakpoints = { {
id = 1,
line = 139,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
} }
},
command = "setBreakpoints",
request_seq = 1,
seq = "4",
success = true,
type = "response"
}
[ INFO ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:873 ] "Server rejected breakpoint" {
id = 1,
line = 139,
message = "The breakpoint is pending and will be resolved when debugging starts.",
verified = false
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1588 ] "request" {
arguments = {
filters = {}
},
command = "setExceptionBreakpoints",
seq = 3,
type = "request"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = vim.empty_dict(),
command = "launch",
request_seq = 2,
seq = "5",
success = true,
type = "response"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = vim.empty_dict(),
command = "setExceptionBreakpoints",
request_seq = 3,
seq = "6",
success = true,
type = "response"
}
[ DEBUG ] 2023-05-15T07:31:07Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:1588 ] "request" {
command = "configurationDone",
seq = 4,
type = "request"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
isLocalProcess = true,
name = "dotnet",
startMethod = "launch",
systemProcessId = 3988
},
event = "process",
seq = "7",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = vim.empty_dict(),
command = "configurationDone",
request_seq = 4,
seq = "8",
success = true,
type = "response"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
module = {
id = "61f695f6-91c2-45d1-9d01-5128e4e8bedc",
name = "System.Private.CoreLib.dll",
path = "C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\5.0.17\\System.Private.CoreLib.dll",
symbolStatus = "Symbols not found."
},
reason = "new"
},
event = "module",
seq = "9",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
reason = "started",
threadId = 6132
},
event = "thread",
seq = "10",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
module = {
id = "4426d91c-e952-4681-9325-2df627655d57",
name = "Xarcade.Test.dll",
path = "C:\\Users\\yapji\\projects\\prox\\xarcade\\Xarcade\\Test\\bin\\Debug\\netcoreapp5.0\\Xarcade.Test.dll",
symbolStatus = "Symbols loaded."
},
reason = "new"
},
event = "module",
seq = "11",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
breakpoint = {
endLine = 140,
id = 1,
line = 140,
message = "",
source = {
name = "XarcadeAccountServiceTest.cs",
path = "C:\\Users\\yapji\\projects\\prox\\xarcade\\Xarcade\\Test\\XarcadeAccountServiceTest.cs"
},
verified = true
},
reason = "changed"
},
event = "breakpoint",
seq = "12",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
module = {
id = "ec92ce44-afcd-47f6-9f67-d1646d7e0f5d",
name = "System.Runtime.dll",
path = "C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\5.0.17\\System.Runtime.dll",
symbolStatus = "Symbols not found."
},
reason = "new"
},
event = "module",
seq = "13",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
reason = "started",
threadId = 12984
},
event = "thread",
seq = "14",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
exitCode = 0
},
event = "exited",
seq = "15",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = vim.empty_dict(),
event = "terminated",
seq = "16",
type = "event"
}
Looks like debuggee process was started and breakpoint resolved and after that:
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = {
exitCode = 0
},
event = "exited",
seq = "15",
type = "event"
}
[ DEBUG ] 2023-05-15T07:31:08Z+0800 ] ...ppData/Local/nvim-data/lazy/nvim-dap/lua/dap/session.lua:935 ] 2 {
body = vim.empty_dict(),
event = "terminated",
seq = "16",
type = "event"
}
this mean your application exited with exit code "0" (exit without error) and ICorDebugManagedCallback::ExitProcess()
callback from debuggee process runtime was called in order to tell debugger that debuggee was exited, this is the only place netcoredbg could sent exited
and terminated
events:
https://github.com/Samsung/netcoredbg/blob/db69338cf1606d8d327de0eaaf1694d8463af135/src/debugger/managedcallback.cpp#L599-L601
This is proper behaviour for netcoredbg, but you should figure out why your application exited, since log say nothing about this.
I see. Thanks @viewizard at least I know the problem isn't with the stuff I'm using. I'll close the issue then. Thanks for your help 🙏
I'm having trouble with using the adapter on Windows and Neovim. This is what happens when the debugging process starts.
I wrote an issue in the dap repository but the author suggested I file an issue here instead.