Help with setting up DAP for Kate text editor

Akseli Lahtinen akselmo@akselmo.dev
Sun Jan 21 17:03:10 GMT 2024


Hey, sorry for the late response. 

I have requested an account to the sourceware bugzilla so I can
create a separate bug report, but here's the logs I got from running the 
command.

```log

+++ cd /home/akseli/Repositories/artificial-rage/build/
>>> Working directory /home/akseli/Repositories/artificial-rage/build.

+++ file /home/akseli/Repositories/artificial-rage/build/ArtificialRage
WROTE: <<<{"type": "event", "event": "module", "body": {"reason": "new", 
"module": {"id": "/home/akseli/Repositories/artificial-rage/build/
ArtificialRage", "name": "/home/akseli/Repositories/artificial-rage/build/
ArtificialRage", "path": "/home/akseli/Repositories/artificial-rage/build/
ArtificialRage"}}}>>>
>>> Reading symbols from /home/akseli/Repositories/artificial-rage/build/
ArtificialRage...

READ: <<<{"arguments": null, "command": "configurationDone", "seq": 2, "type": 
"request"}>>>
Traceback (most recent call last):
  File "/usr/share/gdb/python/gdb/dap/server.py", line 81, in _handle_command
    body = _commands[params["command"]](**args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() 
argument after ** must be a mapping, not NoneType
WROTE: <<<{"request_seq": 2, "type": "response", "command": 
"configurationDone", "success": false, "message": 
"gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() argument after 
** must be a mapping, not NoneType"}>>>
READ: <<<{"arguments": null, "command": "configurationDone", "seq": 3, "type": 
"request"}>>>
Traceback (most recent call last):
  File "/usr/share/gdb/python/gdb/dap/server.py", line 81, in _handle_command
    body = _commands[params["command"]](**args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() 
argument after ** must be a mapping, not NoneType
WROTE: <<<{"request_seq": 3, "type": "response", "command": 
"configurationDone", "success": false, "message": 
"gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() argument after 
** must be a mapping, not NoneType"}>>>
READ: <<<{"arguments": null, "command": "configurationDone", "seq": 4, "type": 
"request"}>>>
Traceback (most recent call last):
  File "/usr/share/gdb/python/gdb/dap/server.py", line 81, in _handle_command
    body = _commands[params["command"]](**args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() 
argument after ** must be a mapping, not NoneType
WROTE: <<<{"request_seq": 4, "type": "response", "command": 
"configurationDone", "success": false, "message": 
"gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() argument after 
** must be a mapping, not NoneType"}>>>
READ: <<<{"arguments": {}, "command": "disconnect", "seq": 5, "type": 
"request"}>>>
WROTE: <<<{"request_seq": 5, "type": "response", "command": "disconnect", 
"success": true}>>>
+++ quit

```

Thanks!
- Akseli

On Wednesday 17 January 2024 17:15:04 EET you wrote:
> >>>>> Akseli Lahtinen <akselmo@akselmo.dev> writes:
> > Hey, I am trying to set up DAP for Kate text editor with following config
> 
> [...]
> 
> > 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
> 
> Is that the complete text?
> 
> If so you can you add the arguments -iex "set debug dap-log-file /tmp/log"
> to the gdb invocation, reproduce the problem, and then send the log file?
> (Opening a new bug would be best.)
> 
> It's probably a bug in the gdb DAP implementation.  It may depend on the
> version of Python your gdb happens to be linked against.
> 
> thanks,
> Tom






More information about the Gdb mailing list