public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Help with setting up DAP for Kate text editor
@ 2024-01-16  9:24 Akseli Lahtinen
  2024-01-17 15:15 ` Tom Tromey
  0 siblings, 1 reply; 8+ messages in thread
From: Akseli Lahtinen @ 2024-01-16  9:24 UTC (permalink / raw)
  To: gdb

[-- 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!  


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-01-22 21:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16  9:24 Help with setting up DAP for Kate text editor Akseli Lahtinen
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

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).