1. Dan Harrel
  2. PowerBuilder
  3. Thursday, 19 October 2017 14:00 PM UTC

I'm sure this has been asked for before, however I cannot find this question in the Appeon community. 

It would be really nice if we had programmatic access to the PB call stack in the SystemError event - a natural place would be as a property of the Error object. 

Now we have access to object, event and line of the code that caused the error, but an ability to dump the call stack would let us see how that code was invoked.  This would be very valuable information for debugging an error experienced by an end user.

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 22 December 2020 17:25 PM UTC
  2. PowerBuilder
  3. # 1

Hi Dan,

Thanks for the compliment and putting your trust in Appeon.  Feature enhancement requests can be emailed to product@appeon.com, but since we have so much on our plate honestly most suggestions won’t get addressed unless it lines up with the roadmap or tons of people requesting.

Considering there is easy solution that you can implement yourself and we don’t have lots of people requesting this, I really don’t think you should wait on us to add this as a feature.  Please follow what Chris said to incorporate the code in the "Trace Options" dialogue located in the STD_FC_Base.pbl library into your app.  

Happy Holidays,

Armeen

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 19 October 2017 17:07 PM UTC
  2. PowerBuilder
  3. # 2

Hi Dan;

   If you are using the STD Integrated Framework .... you can use the frameworks interaction with the PBVM to turn on call stack tracing (option #30).

Regards ... Chris

Comment
  1. Dan Harrel
  2. Tuesday, 24 October 2017 13:21 PM UTC
Thanks, Chris (and Rene).  Unfortunately changing in a new framework on a large and mature application is not the easiest thing to do. 



Is there a good way to feed this in as a request to Appeon?  Now that Appeon is in charge of PowerBuilder, I have more confidence that long wished-for features can get done!  Do these postings get reviewed for potential development?  I wouldn't call this a bug, so I wouldn't file a bug notice. 

  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 22 December 2020 17:15 PM UTC
Hi Dan;

Its easy ... just look at the code in the "Trace Options" dialogue located in the STD_FC_Base.pbl library and then feel free to assimilate the code into your PB App(s). HTH

Regards ... Chris
  1. Helpful
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Thursday, 19 October 2017 14:24 PM UTC
  2. PowerBuilder
  3. # 3

Yes, this is a very old enhancement request.

Jermery Lakeman has developed a function stack_trace in his FastFuncs some years ago. Maybe it helps.

Here you can find the code: https://github.com/lakeman/fastfuncs You have to compile the c++ dlls yourself.

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.