PDA

View Full Version : When developing a plugin, how can i debug it?


Fatmike
October 28th, 2005, 10:45
Hi,

does anyone know how i can debug a olly plugin during developing time? i use ms visual stuido. i want to attach to olly debug and then set breakpoints in my dll code in visual studio, so that i can debug it.

thx!

blabberer
November 7th, 2005, 11:59
load ollydbg on ollydbg and then load and then go on from there

view executable module --> find names on your plugin on parent ollydbg
set bp on plugin main or any other code in your plugin
now switch to child ollydbg and then use your plugin (for example
pluginmenu --> your plugin-->click would break on plugin main callback

there is a debug plugin made by tbd but it has not been updated to 1.10
it comes with source if you are enterprising enough you can try
upgrading that plugin

Lord_Looser
November 7th, 2005, 12:33
Project preferences - configuration active(Debug)
Debugging - Command: C:\OllyDbg\OLLYDBG.EXE
Linker - Output file: C:\OllyDbg\plugins\plugin.dll

For testing set breakpoint at
extc int _export cdecl ODBG_Plugindata(char shortname[32]) {
strcpy(shortname,"name"; // Name of plugin <-- breakpoint
...
}

Epsylon3
November 7th, 2005, 16:40
Yep... it's not the "!" icon (Ctrl F5).... it's RUN (F5) to debug in VC6.... erfgh

Fatmike
November 7th, 2005, 16:42
thanks! :-) i will try that...