Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Splitting debugger in two - specific debugger and common GUI

<< < (79/136) > >>

cbexaminr:
Proposed feature patch

Support invocation of (gdb) debugger for a specific executable without any project/workspace being loaded

patch adds menu item to Debug menu (Debug external process) and adds code to support that item for gdb configured debugger

developed/used with personally built mingw gdb 7.2

Caveats:
1)Interface is multiple gettext boxes, eventually should prob. be a dialogue (but I'd like this basic functionality now)
2)Needs to support remote debugging as well (but that requires grok'ing additional code that currently _does_ seem to be very intertwined with a project's existence/presence, and is additional work beyond this basic functionality)
3)Some changes have been made to the cdb debugger side, but I have not tried it, and do not know whether those changes are sufficient.
4)tested on windows only, but expect it to work on *nix as well.

cbexaminr:
Does any interest (apart from myself) remain in the experimental scrolling 'quickwatch' tooltip variable view?  

(Originally worked on some in separate thread, and last [I think] mentioned in this thread, with patch, but seemingly either ignored, or overlooked...)

The last version posted only displayed outermost items, requiring 'open'ing of sub-layers for conglomerate/list items...

dmoore:

--- Quote from: cbexaminr on February 07, 2011, 04:24:26 am ---Does any interest (apart from myself) remain in the experimental scrolling 'quickwatch' tooltip variable view?
--- End quote ---

Sounds interesting to me.

Obfuscated: I put together a stub Debugger plugin, but having a hard time figuring out how to get my plugin to show up in Debug->ActiveDebuggers menu. I have put this in my plugins OnAtttachReal:


--- Code: ---    DebuggerManager &dbg_manager = *Manager::Get()->GetDebuggerManager();
    dbg_manager.RegisterDebugger(this, _T("testplugin"));

--- End code ---

Most of the virtual method implementations are empty stubs at this point. What else to I need to add before the plugin shows up in the ActiveDebuggers submenu?

dmoore:
Never mind: my plugin had implementations of OnAttach and OnRelease. I removed those and did what was necessary in  OnAttachReal/OnReleaseReal (something to be wary of...)

Next issue: When my plugin is made the active debugger, how do I tell the debugger UI to wake up? (i.e. most of the Debug Menu is greyed out at start up)

oBFusCATed:
dmoore:
You should have "debug->start", "debug->run to cursor" and "debug->step into" active. Is this the case?
If it is not, look in the debugger_menu.cpp, there are two UpdateUI/OnUpdateUI methods.

cbexaminr:
1. Why do you need such feature? C::B is not intended as a gdb/cdb-only wrapper. It is an IDE with debugging support.
2. I've added the tooltips to my TODO, but I've postponed looking at them several times.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version