Due to some unavoidable feature of gdb, such as:
1, under windows, When I use gdb with python supported, when showing a local uninitialized variable, such as a vector<string>, the gdb will crash.
2, when debugging, when I select some piece of code, the debugger plugin try to evaluate the "whole piece of the code", this will always cause gdb to crash.
So, can some devs to add an option that when the user hold the "ctrl" key, and the caret hover event send, then the debugger plugin just send the expression to gdb.
any ideas?
Both Loaden and I have just modify the code to:
void DebuggerGDB::OnValueTooltip(CodeBlocksEvent& event)
{
event.Skip();
if (!m_pProcess || !IsStopped())
return;
if (!Manager::Get()->GetConfigManager(_T("debugger"))->ReadBool(_T("eval_tooltip"), false))
return;
if (!wxGetKeyState(WXK_CONTROL)) // does not work!!!!!
return;
But the code does not work.
wxGetKeyState(WXK_CONTROL) this function always get false.
any comments about this?
why I can't query the ctrl key information???
thanks.
Edit:
In this post: one more years ago.
http://forums.codeblocks.org/index.php/topic,10616.msg72724.htmlBy the way, I want to use "CTRL" key while mouse hovering some text to get the ValueTooltip shown.
So, I try to add the code:
Code:
+// if (!wxGetKeyState(WXK_CONTROL))
+// return;
But it didn't works as I expect. Can you give me some suggestions?
Thanks