Solved

Debug Information...

Posted on 2002-05-22
11
236 Views
Last Modified: 2010-04-04
I want that exception handler of my program will run a log file with some information, like
1. Class  + function name.
2. unit name + line number
3. Call stack
and any another run-time information that can help to locate a problem.

Question is how to get the information?  
0
Comment
Question by:Slavak
  • 3
  • 2
  • 2
  • +3
11 Comments
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 7027105
Get the Jedi Code Library from http://delphi-jedi.org/CODELIBJCL and have a look at the debugextension example.
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7028444
gotta check that one out :)
I use TExceptionalMagic from http://dimus.virtualave.net :)
0
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 200 total points
ID: 7028956
also check out the madException unit by Madshi at www.madshi.net
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 3

Author Comment

by:Slavak
ID: 7029356
Thanks, guys.

JCL components just has no help. From the site there is should be jcl.chm file. But I cannot see it on the page :(.

TExceptionalMagic component should provide global variable ExceptionHook, but when I try use it, it always nil.

Madshi component worked!!!

So, I guess, points is for DragonSlayer. May be I should give some for Madshi?
0
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 7029451
Please download the whole JCL. The help file is inside it.
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 7030933
just purchase his component, he'll be more than happy :)
0
 
LVL 20

Expert Comment

by:Madshi
ID: 7031221
:-)  Thanx DragonSlayer!

Slavak, please give the points to DragonSlayer.

My stuff is free for non-commercial purpose, but you have to get free license keys from me (see freeKeys.html). Without those license keys your program will deny to run on any other than your development PC.

Jedi comes with full sources and without the need for license keys. You may want to compare yourself. Well, I like my exception handling stuff better by a whole lot, but probably I'm a bit biased...   :-)

Regards, Madshi.
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 7031278
Hi Madshi :)

Well, another way of getting his components for free is to try your very best to be in the Top 10 Delphi Experts... I've been trying hard but to no avail yet, lol, so good luck! :)
0
 
LVL 6

Expert Comment

by:Sergio_Hdez
ID: 13243232
Madshi, I sent the payment for the component -it is a dream!- last week, and haven't recieved my key, nor I have used any free key, just instaled, a little configuring, and compiled.

But I didn't noticed that I need a free key to try it out of my PC, so as I didn't know I can't do it, I did it... and IT WORKS on other PCs... but now I am confused, mostly because I spreaded the "today version" with this error handling and have taken it out from my page until I clarify this point... my customer could kill me if they update and it stop working!

Just for the records, I paid it to him BEFORE udataing my app -even before fully testing it in my app- so no comercial use was done before paiment. ;)
0
 
LVL 20

Expert Comment

by:Madshi
ID: 13243355
You're currently using the non-commercial version, which is not limited in functionality. So you don't need to worry. It's ok that way, as long as you did buy a license.

But I'm wondering why you didn't receive a key! Which is your order number? And under which name and for which company did you buy the license? Perhaps we should move this to email?

P.S: Wow, almost 3 years after the question was asked...   :-)
0
 
LVL 6

Expert Comment

by:Sergio_Hdez
ID: 13243751
Ops, my K9 spam filter filtered it out... It is not very well trained on english texts, as most of my emails are in spanish and english emails are spam 99.9% of time.

I rescued both email texts from my K9 logs, and the file itself from my eudora attach folder -thanks god I don't use OutLook- as I only delete the message texts -attached viruses sleep in this folder until we kill them, they are harmless in here-. Don't worry about re-sending anything, Madshi.

Ok, I have a couple of questions for you, but this is not the place anyhow.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question