Solved

Debug Information...

Posted on 2002-05-22
11
232 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now