User forums > Using Code::Blocks

About cb's debugger

<< < (5/6) > >>

scarphin:
Ok, thanks for the info. I believe it will be very challenging for me regarding my skills but I'll give it a try.

oBFusCATed:
I don't think so. It should be pretty easy to add. Almost all of the code should be there you just have to re-arrange it a bit. :)

scarphin:
Sorry for the late reply, I don't and won't have access to my computer for a couple of days. I think the problem with dereferencing the function arguments or locals is they are implemented as properties of 'function arguments' and 'local variables' special watches respectively. So when one tries to dereference them cb acts like the right click menu for a property is clicked. I'm not sure how to fix that in a proper way. What I can come up with is to implement them as normal watches not properties of 'function arguments' and 'locals' but I can't find for sure where they are implemented in the code. Maybe it will be easier for someone more skilled than me to fix that. Any help or a better solution?


--- Quote from: oBFusCATed on November 16, 2014, 05:37:45 pm ---I don't think so. It should be pretty easy to add. Almost all of the code should be there you just have to re-arrange it a bit. :)

--- End quote ---
'Easy for you' means at most 'possible' for me btw. ;)

scarphin:
I can't find where in the source the locals and function arguments are inserted into the watch dialog, can anyone point me to the part of the code in question?

Bat:
Here few entry point for searching

Add of "Dereference" context menu

--- Code: ---plugins\debuggergdb\debuggergdb.cpp
void DebuggerGDB::OnWatchesContextMenu(wxMenu &menu, const cbWatch &watch, wxObject *property, int &disabledMenus)

--- End code ---
Entry is registered with a standard item,
--- Code: ---idMenuWatchDereference
--- End code ---
that is defined in EVT_MENU at top of file

"Locals" and "functions arguments" are inserted in DebuggerGDB::DoWatches as special entries


Handling of watches (standard to all debugger plugins)

--- Code: ---src\watchesdlg.cpp

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version