I try to add new events to debugger in my plugin. I write code like below:
Manager* pm = Manager::Get();
pm->RegisterEventSink(cbEVT_DEBUGGER_STARTED, new cbEventFunctor<myplugin, CodeBlocksEvent>(this, &myplugin::testevents));
pm->RegisterEventSink(cbEVT_DEBUGGER_PAUSED, new cbEventFunctor<myplugin, CodeBlocksEvent>(this, &myplugin::testevents));
pm->RegisterEventSink(cbEVT_DEBUGGER_FINISHED, new cbEventFunctor<myplugin, CodeBlocksEvent>(this, &myplugin::testevents));
...
void myplugin::testevents(CodeBlocksEvent &event)
{
Manager::Get()->GetLogManager()->DebugLog(_("text"));
wxMessageBox(_T("text"), _T("Warning"), wxOK);
}
When I build and install my plugin nothing happen.
Looks like this events are not implemented.
When I write this same code with cbEVT_EDITOR_OPEN. It's works but only partly. MessageBox appear but DebugLog does not works.