Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsVendor specific debug protocol commands
https://www.eclipse.org/forums/index.php/mv/msg/561187/1148919/#msg_1148919
Specifically, how would you recommend the LDT plugins be changed to accomodate vendor specific commands? And is there a preferred integration point in debugger.lua for doing the same -- like calling out to a vendor-specific module or do we need to change our version of debugger.lua to handle these cases?
Thanks very much
Dan Jackson
]]>Dan Jackson2013-10-21T20:46:25-00:00Re: Vendor specific debug protocol commands
https://www.eclipse.org/forums/index.php/mv/msg/561187/1151686/#msg_1151686
I'm not the main developer of debugger code and I'm not aware about a way to add a vendor specific command. Maybe you could have a look at :
- debugger.commands module at lua/client side.
- IDbgpSession, IDbgpCoreCommands,... and all interface in DLTK package org.eclipse.dltk.dbgp.commands for eclipse/server side. You could take a look at that too .
HTP
Simon]]>Simon Bernard2013-10-23T14:27:22-00:00Re: Vendor specific debug protocol commands
https://www.eclipse.org/forums/index.php/mv/msg/561187/1152022/#msg_1152022
-Dan
]]>Dan Jackson2013-10-23T19:25:48-00:00Re: Vendor specific debug protocol commands
https://www.eclipse.org/forums/index.php/mv/msg/561187/1152093/#msg_1152093
It depends of what you are trying to accomplish.
If you want to be able to inspect some custom userdata, a new feature called "inspectors" will be integrated soon in LDT. It will allow you to provide a custom introspection function which decode customs objects (read only for now). See the associated bug for details. Basically a quite simple Lua hook can decode any custom table or userdata.
But if you want to really add commands, like Simon said, you have to add support of it on both debugger and IDE sides. There is no strict policy about adding extra features to DBGp protocol, LDT does this for coroutine handling: a new command "coroutine_list" has been added, and some standards commands takes an extra "-o" parameter to operate on a paused coroutine.
Adding a command in debugger is not so complex, just an extra handle to add in "debugger.commands" (you can monkey patch it, modifying source is not needed).
On IDE side, it's a bit more cumbersome as most of DBGp support is provided by DLTK framework and extending it may be difficult (coroutine management required a ton of hacks IIRC).]]>Julien Desgats2013-10-23T20:24:30-00:00Re: Vendor specific debug protocol commands
https://www.eclipse.org/forums/index.php/mv/msg/561187/1153092/#msg_1153092
Thanks again
Dan
]]>Dan Jackson2013-10-24T11:25:54-00:00