1. Gilcemar Guizzo Zanette
  2. PowerBuilder
  3. Monday, 19 August 2024 16:41 PM UTC

Hi everybody.

 

Is there any way to show the callstack from an error? Like when I'm debugging, I can view the callstack, showing all de code tha lead to that point.


I need to improve this kind of error.

Invalid DataWindow row/column specified at line 10 in function getitemdatetime of object. 

Thanks.

John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 20 August 2024 00:53 AM UTC
  2. PowerBuilder
  3. # 1

Hi, Gilcemar -

There is no Appeon-supplied access to the execution call trace/stack, but there may be an unsupported way. I've not tried it. Check out this post from February 2023:

    https://community.appeon.com/index.php/qna/q-a/stack-calls

Best regards, John

Comment
  1. Gilcemar Guizzo Zanette
  2. Tuesday, 20 August 2024 14:29 PM UTC
I'll try, thanks
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 20 August 2024 14:21 PM UTC
  2. PowerBuilder
  3. # 2

If you are using an ancestor DataWindow object, you can override the getitemdatetime function and in your code call the base function like this:

Super::GetItemDateTime(arguments)

Now you can add a try catch or a debug break. A debug break would allow you to see the call stack.

Comment
  1. Gilcemar Guizzo Zanette
  2. Tuesday, 20 August 2024 14:29 PM UTC
Hi, my main need it's save the error in database, to analyze errors on clients.

So, what I need it's some resource to with the error, save the call stack.

We use a object inherinted from datawindow, when errors ocourr in this object, the messasge just say about this object, we don't know the code before that raised the error.



Thanks
  1. Helpful
There are no comments made yet.
Simon Jutzi Accepted Answer Pending Moderation
  1. Tuesday, 20 August 2024 17:03 PM UTC
  2. PowerBuilder
  3. # 3

Hi Gilcemar,

We use exactly this method in our exception framework.
You can find it here: https://github.com/informaticon/lib.pb.base.exception-framework

Feel free to use it or to copy the parts from it which you need.
If you need assistance, you can also open an issue on the repository.

Regards, Simon

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.