PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marco Pontello on October 31, 2004, 10:31:18 PM

Title: PBTracer as a FireFly's Tool
Post by: Marco Pontello on October 31, 2004, 10:31:18 PM
For me, one of the reason for getting FireFly was to (finally) relasing a polished version of PBTracer (http://mark0.ngi.it/soft-pbtracer-e.html), with a GUI interface.

Today, after updating to the latest 1.09, I have tried to see how PBTracer could be possibly integrated in FireFly even in it's present state (command line driven for the Injector, text mode for the browser).
I added two switch, one to process also include files, and one to overwrite the original source. This way, it become possible to use PBTracer Injector as a pre-compile tool and automate the whole process.

Here's what to do to play a bit with it:
Now when you compile a project, the source is automatically injected before invoking the PB compiler. After running/testing the executable, you can then start the PBTracer Browser and "surf" on the execution trace of the last run. For example, you could:
N.B.
Currently, near all the lines are injected/instrumented, thus slowing down the execution (from a bit to extremely)! You may be able to see the system drawing button after button on a form! :) I will probably add some kind of profile especially for FF, to exclude some code's regions from the Injection, or something like that.
Beware that, speed aside, there may be also some bugs. Nothing too problematic, hopefully.

(https://www.planetsquires.com/protect/forum/proxy.php?request=http%3A%2F%2Fmark0.net%2Fscreenshots%2Fpbtracer-firefly-1.png&hash=d0865590c9cc6a84961d8b87f8a28ef9338ab477)

Anyway, I hope PBTracer can be useful to someone even in his present form. At least you will enjoy a different point of view on your code, and see some behind-the-scenes working! :)

Bye!
Title: PBTracer as a FireFly's Tool
Post by: Haakon Birkeland on November 01, 2004, 10:17:25 AM
Exciting, cool.. - keep going Marco!!  :thumbsup:
Title: PBTracer as a FireFly's Tool
Post by: John Messingham on November 02, 2004, 06:00:21 PM
This app looks like it could help me out. I have set it up as per the posting above, but I cannot get it to do anything. I am developing on XP(Home). Any clues will be most welcomed.
Title: PBTracer as a FireFly's Tool
Post by: Marco Pontello on November 02, 2004, 07:04:12 PM
My fault, I forgot some details that need to be taken care of, due to the primitive state of the tools.
All the injected code contain hardcoded reference to the "\PBTracer\" folder, so PBTracer must be installed in that folder, in the root of the drive in witch the application is run.
So, maybe you develop on a D: or other drive, and then it may simple a matter of moving the installed forlder.
If the application start but complain about the missing PBTracer.DLL, copy it from the PBTracer folder to the application folder (or somewhere in the path).
Also, note that the the "/I" switch is a capital "i", not a "l".

Hope this help,
Bye!