Log in

View Full Version : Need help with debugging


crackzilla
November 25th, 2002, 18:00
I need to set a breakpoint on button click event to see what code is executed. What debugger would be the best and how can I do this?

The program is VB6 native. SmartCheck didn't help.

Thanks

esther
November 25th, 2002, 18:09
Did you read the FAQ?
Did you search the web or forum?
There are lots of tools you can use ollybug,softice and so forth....

crackzilla
November 25th, 2002, 20:26
Thanks anyway.

I'll try OllyDbg, I don't like the SoftIce interface.

hobferret
November 25th, 2002, 23:42
Come on esther give him a little help

Look for handles [HWND] then break on window message [BMSG] I.E. BMSG WM_LEFTBUTTONUP

We all have to learn somehow and a bit of help works fine

/hob

esther
November 26th, 2002, 17:03
Hi,

hobferret:-
Look for handles [HWND] then break on window message [BMSG] I.E. BMSG WM_LEFTBUTTONUP

>>>Should be bpx wm_lbuttonup
bmsg window handle(odblah)
The above can be use in softice,not sure of ollydbg though

Ps:he should read it (FUQ)

Regards

crackzilla
November 26th, 2002, 17:44
Thanks, the job is done

crackzilla
November 26th, 2002, 18:20
BTW, it was a freeware program. I had to patch the exe in 3 places to remove the limitations.

bpx wm_lbuttonup works in OllyDbg, but I did it different by using
__vbaStrComp (before I read your replys).

In OllyDbg:

1) Right click on disassembly window
2) Search for -> Name in all modules
3) found __vbaStrComp by browsing the _huge_ list and set a beakpoint on it

Is there a way to do this easier? If I use bpx __vbaStrComp I get a large list of Intermodular calls, it doesn't sets a simple breakpoint.

Thanks