?
Solved

Debug Information...

Posted on 2002-05-22
11
Medium Priority
?
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 600 total points
ID: 7028956
also check out the madException unit by Madshi at www.madshi.net
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

752 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