Page 1 of 1

Tracer: a program to debug DLLs

Posted: Mon Aug 31, 2009 11:36 pm
by somic
Hi to everyone,

after spending hours struggling to debug DLL's, I've decided to create a small tool to trace program code.
It is a command line program to automatically add debug output code to PB souces.
Written in PureBasic 4.31 (x86) -
Code and binary are provided FREEWARE to this wonderfull comunity.
Use and modify at YOUR OWN WISH and RISK :-).

Run Tracer /h for help file (program has tons of parameters)

Sample code is provided. In addition an include file is provided with Timer functions, usefull for code profiling.

Still under construction. Feel free to report bugs, suggestions and critics.

Regards,
Somic

Notes:

NEW File (ver. 0020) can be found here:
http://www.semelinanno.com/downloads/tr ... _v0020.zip
(see post dtd 6/9/09)

Tracer page here:
http://www.semelinanno.com/downloads/tr ... _Page.html

File can be downloaded from here (first issue):
http://www.semelinanno.com/downloads/tracer/Tracer.zip

DebugView by Sysinternals can be found here:
http://download.sysinternals.com/Files/DebugView.zip

My website is here (has more programs and codes)
www.semelinanno.com

Posted: Tue Sep 01, 2009 4:33 am
by rsts
Thanks for the file.

BTW I love the pictures. I see why they're your favorites.

cheers

Posted: Tue Sep 01, 2009 11:58 am
by idle
thanks, could be very handy for dll debugging woes.
Oh yes and nice favorite pictures too!

Posted: Wed Sep 02, 2009 12:48 am
by somic
News:

- Made small changes :!:
- Added 7 steps tutorial 8)
- Had fun with your comments :P
- Improved the favorite pictures :wink:


Regards,
Somic

Posted: Wed Sep 02, 2009 1:59 am
by Mistrel
Impressive. Thanks for sharing!

Love the favorite pictures, too. :D

I'm browsing your other excellent code snippets too. Can you fix the link for the image on this page?

http://www.semelinanno.com/downloads/an ... _Page.html

Posted: Wed Sep 02, 2009 7:11 am
by somic
Hi Mistrel,

thank you for your words.
I've learned a lot from this forum (not only code) and I hope to give something back.

I checked the page and all the links seem OK.
Also the picture is properly shown in my browser.

However, I've made a small change to the property of the page in the file and added a link to it. Pls try it and let me know if it doesn't work.

Rgds,

Posted: Wed Sep 02, 2009 8:17 am
by Mistrel
Yes, the image works now. Thank you. :)

Posted: Sun Sep 06, 2009 12:33 am
by somic
Hello Everyone,

I've made some development of the tool.

Hera is a summary of the changes:
- Recursively manage IncludeFile and InlcudePath (all renamed to _$_FileName.ext)
- Added File Properties
- Incorporated TracerAux.pbi (no need of external file)
- Added some command line parameters (SameDestFolder, AddRunInfo, ScanIncludeFiles)
- Added TestCompile command line parameter (to test outputcode after Tracing)
- Added various source code Directives
- Modified behaviour with some PB keywords (Select/case, Loops instructions)
- Fixed some bugs

Hope you will find it usefull.

Let me have you comments and bugs at your wish.

New Files can be downloaded from here:
http://www.semelinanno.com/downloads/tr ... _v0020.zip

The Page is here:
http://www.semelinanno.com/downloads/tr ... _Page.html

My website is here (has more programs and codes)
www.semelinanno.com

I've added the new link also in the first post.

Somic