1. Arcady Abramov
  2. PowerBuilder
  3. Wednesday, 3 August 2022 07:29 AM UTC

Hello, all

PB 2017 app crashes in production with PBVM error.

We are failing to catch the line of code where it happens.

It happens in the same screen on the same critical user operation, but it is not consistent. Sometimes it passes, on other it fails.

How can we catch the line of code in the script?

We tried using app trace, but since the file is not properly closed, the PB cannot read it.

Is there another way to read it?

 

Thank you

Arcady

René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 3 August 2022 08:14 AM UTC
  2. PowerBuilder
  3. # 1

To find the line the app crashes you can use the pbdebug feature. It produces a text file. But it is quite slow.

You can use this if you call your exe with /pbdebug command parm. From IDE use "Enable PBDebug tracing" from "General" tab in System Options.

Comment
  1. Andreas Mykonios
  2. Wednesday, 3 August 2022 08:40 AM UTC
I agree with René. One thing you may have in mind, pbdebug is to slow if your application is based on a framework like pfc. I would also suggest you to use PBLPeeper to see the contents of produced dbg file, if you don't have any other tool for that. If you open your application in pblpeeper and load the dbg file, you can see your dbg contents on the left side and actual position in pb code on the left side.

Andreas.
  1. Helpful 2
  1. René Ullrich
  2. Wednesday, 3 August 2022 08:47 AM UTC
You could check Chris Pollachs Std Foundation Classes framework. AFAIK he has implementend some API calls to start PBDebug at runtime. So you have the chance to run it only for the piece of code that you want to check.
  1. Helpful 3
There are no comments made yet.
Arcady Abramov Accepted Answer Pending Moderation
  1. Wednesday, 3 August 2022 12:26 PM UTC
  2. PowerBuilder
  3. # 2

Thank you, 

Found the line

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.