Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
For oBFusCATed... breakpoint issue when with python debugger plugin
dmoore:
Having some problems with breakpoints in my python debugger plugin. I can add them with a right click in the margin. But if I click the margin again to toggle it off nothing happens (The DeleteBreakpoint method of the python debugger plugin doesn't get called). I can open the breakpoint dialog and remove the dialogs that way, but the editor doesn't update the change (I can force an update of the editor by switching the active debugger). Any idea what might be the problem here? Suspect I have registered either the plugin or the breakpoints incorrectly...
SVN is here or browse the code here specifically this file. The best way to see what is going on is to install the plugin and test it out adding/removing breakpoints on a python script.
dmoore:
d'oh! fixed in my SVN
oBFusCATed:
Hm, I should have posted a comment, but I don't see it, have I? :(
dmoore:
I didn't see anything. ??? Anyway, problem solved by debugging C::B from C::B with GDB :)
oBFusCATed:
Yeah, because I was too sleepy to post this:
--- Quote ---Change:
bool IsVisibleInEditor()const {return false;}
to
bool IsVisibleInEditor()const {return true;}
You should return false only if the breakpoint is temporary.
Also I don't think you need this code in AddBreakpoint:
--- Code: --- for (BPList::iterator itr=m_bplist.begin(); itr!=m_bplist.end(); ++itr)
{
if((*itr)->GetLocation()==file && (*itr)->GetLine()==line)
return cb::shared_ptr<cbBreakpoint>();
}
--- End code ---
--- End quote ---
Navigation
[0] Message Index
[#] Next page
Go to full version