How to obtain a "bug" report outside of an exception?

delphi package - automated exception handling
Post Reply
StephaneGrobety
Posts: 19
Joined: Tue Jul 17, 2018 9:21 am

How to obtain a "bug" report outside of an exception?

Post by StephaneGrobety »

Hello,

I need to implement something similar to the "madTraceProcess" but from a different machine.

I have the following context:

- A distributed message queue is already implemented. It will be the trigger and delivery mechanism.
- This message queue is executed in the context of a background thread.
- It needs to be able to reply to a "getTrace" message by obtaining a process trace in text form (as much as possible, without interrupting any other threads).

At first glance, all I really need is something that does the same as madTraceProcess but from within the process itself (which ought to be simple).

How should I go about implementing this?
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: How to obtain a "bug" report outside of an exception?

Post by madshi »

In theory simply calling "someAnsiStrVar := madExcept.CreateBugReport()" should provide you with a full report of what the process is doing. Hope it works for you?
StephaneGrobety
Posts: 19
Joined: Tue Jul 17, 2018 9:21 am

Re: How to obtain a "bug" report outside of an exception?

Post by StephaneGrobety »

Perfect, thanks.

(Getting real time status of dozens of applications used by dozens of users in near real-time is like magic :D )
Post Reply