Is it possible to use JclDebug to get parameter values โ€‹โ€‹from the method that caused the exception?

I use the 'JclGetExceptStackList' function to register a call stack from the above exceptions.

I want, if possible, to also write the value of the parameters from the method that caused the exception.

I do not know if it is possible to do this with JclDebug, or that there is any other way to do this.

Can anybody help me?

Thanks!

+4
source share
2 answers

While this cannot be done with JclDebug, and doing this manually can be a lot of work, you may find that any logging tool, including Log4D or CodeSite, or even outputdebugString, can do this at a lower cost. In fact, this will embed code to record parameter calls, anywhere you choose to insert such logging. It can also insert a special marker when an exception occurs, which allows you to restore the exact scenario that will lead to your failure.

But since CodeSite does not do this only when an exception occurs (how would it be?), This is not exactly what you wanted. However, I find that a reasonable trace log in combination with the jcl stack trace (or made an exception or eurekalog) is more than enough, and that if I really need to know all the parameter values โ€‹โ€‹involved in the call, I have to go back and add more trace messages.

+2
source

This is not possible at all, because parameters are usually passed to registers. which are overwritten every time the procedure is called.

+2
source

All Articles