Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
how to modify the plugin debugger
jibimily:
I do not know how to modify the exsiting plugin in windows platform
Now,I setup the codeblock-mingw binary on windows in D:/CodeBlock, then donwload the source code and wxwidgets.
for example:I modify the plugin
debuggergdb.cpp:
void DebuggerGDB::Step()
{
cbMessageBox(_("This is my first Plugin test program"), _("Info"), wxICON_QUESTION);
RunCommand(CMD_STEPIN);
}
then complie the CodeBlocks.cbp in source code, then copy the devel/libcodeblocks.a and libwxscintilla.a to D:/CodeBlock
and copy src:"share\CodeBlocks\plugins\debugger.dll" to "D:\CodeBlocks\share\CodeBlocks\plugins", repalce it
then restart CodeBlocks, the Message "One or more plugins were not loaded.this usually happens when a plugin is built for a differnt vsersion of the Code:Blocks SDK.Check the application log for more info.List of failed plugins:debugger.dll"
I really do not konw how to development plugin in windows,please help me !
oBFusCATed:
1. Download the source of C::B
2. Build the source using C::B
3. Execute src/update.bat
4. Hit F9 or F8 in C::B
That's it.
p.s. What do you want to modify in the debugger? Do you know that we've made many modifications to the debugger in the wxpropgrid_debugger branch? Have you tried it.\
p.p.s. Please use code tags and no bold.
jibimily:
Thank you for your reply.
Now I can successfully build a new plugin project and insert it to my C::B
But I want to modify the debugger for remote debugging. Then use it for Embedded Development and debugging.
I means that the "debugger plugin" do not use the local gdb,only send and receive message from remote machine. the real progam is running on remote machine.
I just start to learn to use C::B and would like to add new function for this software.
I have not known about the wxpropgrid_debugger branch,could you give me more information.
And another problem is:Every time I modify the code of debugger, I have to rebuild the whole C::B project and cost much time. Is there an method of picking up the debugger module to rebuild.
oBFusCATed:
Here is the branch: http://svn.berlios.de/wsvn/codeblocks/branches/wxpropgrid_debugger/?#ab1bb068457ecc925a5b07fe41a91d401
Download it using a svn client.
1. C::B supports remote debugging, look in project -> properties -> debugger. For proper working remote debugging you'll need the debugger's branch (you can use a nightly, too)
2. Hm, don't know what is broken at your place, for me the code is rebuild correctly and it is very fast.
Maybe you need to check the modification time of the sources of C::B, they should not be in the future!
xunxun:
You should rebuild your plugin with the same cb sdk.
Navigation
[0] Message Index
[#] Next page
Go to full version