From: Akseli Lahtinen <akselmo@akselmo.dev>
To: gdb@sourceware.org
Subject: Help with setting up DAP for Kate text editor
Date: Tue, 16 Jan 2024 09:24:55 -0000 [thread overview]
Message-ID: <170539709501.26.7046470475324272764@startmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1857 bytes --]
Hey, I am trying to set up DAP for Kate text editor with following config
```json
"gdb": {
"url": "gdb",
"run": {
"command": ["gdb", "-i", "dap"],
"redirectStderr": true,
"redirectStdout": true,
"supportsSourceRequest": false
},
"configurations": {
"launch (debug)": {
"request": {
"command": "launch",
"mode": "debug",
"program": "${file}",
"args": "${args|list}",
"cwd": "${workdir}"
}
}
}
},
```
It starts running fine and can find breakpoints,
but when I try to start the debugging process, I get following error:
error on response:
gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() argument after
** must be a mapping, not NoneType
Just for comparison, I can run LLDB with Kate just fine with the following
config:
```json
"lldb": {
"url": "<https://github.com/llvm/llvm-project/tree/main/lldb/tools/>
lldb-vscode",
"run": {
"command": ["lldb-vscode", "-p", "${#run.port}"],
"port": 0,
"redirectStderr": true,
"redirectStdout": true,
"supportsSourceRequest": false
},
"configurations": {
"launch (debug)": {
"request": {
"command": "launch",
"mode": "debug",
"program": "${file}",
"args": "${args|list}",
"cwd": "${workdir}",
"stopOnEntry": false
}
}
}
},
```
Just wondering if I am missing something?
Thanks for the DAP support by the way. GDB is amazing debugger and I love
using it, but I would love to use it in the Kate text editor as well :)
Best regards,
Akseli
ps. Please use reply-all since I am not subscribed to the mailing list, thank
you!
next reply other threads:[~2024-01-16 9:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-16 9:24 Akseli Lahtinen [this message]
2024-01-17 15:15 ` Tom Tromey
2024-01-21 17:03 ` Akseli Lahtinen
2024-01-22 13:45 ` Tom Tromey
2024-01-22 17:21 ` Tom Tromey
2024-01-22 17:28 ` Akseli Lahtinen
2024-01-22 19:05 ` Tom Tromey
2024-01-22 21:07 ` Akseli Lahtinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170539709501.26.7046470475324272764@startmail.com \
--to=akselmo@akselmo.dev \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).