1. Yiannis Papadomichelakis
  2. PowerBuilder
  3. Tuesday, 31 January 2023 08:57 AM UTC

Hi all

When I define a breakpoint, exit and re-enter IDE, the breakpoint disappears.

This is not happening on PB2019.

Can I control it somehow? A system option that I dont know maybe?

It's very disturbing when you try to figure out where and why the IDE is crashing...

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 2 February 2023 15:26 PM UTC
  2. PowerBuilder
  3. # 1

Hi,

Maybe you haven't seen my previous comment:

1. Open Powerbuilder 

2. Set your debug stop in you application that you want to debug.

3. Start running your application in debug mode.

4. Immediately exit your application (don't go to the point where it blows up).

5. Now your debug stop should be still there when you run the application again. Even if it now blows up, your stop should be still there.

6. If that doesn't work, maybe create a support ticket.

regards.

Comment
There are no comments made yet.
Ashutosh Varshney Accepted Answer Pending Moderation
  1. Tuesday, 31 January 2023 14:37 PM UTC
  2. PowerBuilder
  3. # 2

I've had similar problems when my application was being source controlled (pushOk). I guess PowerBuilder is not able to write to the application object if it has not been checked out. Problem went away after I checked out the application object. Hope this helps.

Comment
  1. Yiannis Papadomichelakis
  2. Tuesday, 31 January 2023 15:30 PM UTC
I had no idea that this information is stored on the application object. However, this is not my case, the library that stores the application object is not readonly in my case.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 31 January 2023 13:34 PM UTC
  2. PowerBuilder
  3. # 3

Hi Yiannis;

  FWIW: I run PB 2022 on W10 & W11 real PC's and do not have this issue.

Regards ... Chris 

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 31 January 2023 21:51 PM UTC
Hi Yiannis;

Yes, the IDE always stores the current debugger settings in the "<TargetName>.usr.OPT" file within the root of the App's Target's main work folder.

If I close the PB IDE & then rename the *.OPT file to say *.CIP - then restart the PB IDE debugger all my debugger settings are gone. :-(

If I stop the PB IDE & then delete the new .OPT file plus rename *.CIP back to *.OPT, ... when I restart the PB IDE all my debugger settings are back.

So your problem might be your O/S environment that is deleting or damaging the related .OPT file(s) in between IDE sessions. HTH

Regards ... Chris
  1. Helpful 1
  1. Yiannis Papadomichelakis
  2. Thursday, 2 February 2023 15:12 PM UTC
That file was months old in my project. I deleted it, defined new tabs and closed the IDE. A new .opt file created, however the breakpoints are not loaded!
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 3 February 2023 01:51 AM UTC
If the OPT file is not updated every time you enter the debugger - then there is something serious;y wrong with your environment.

The other thing that can cause this is that somehow your main Workspace "Folder", "Sub-Folders" & "Files" are becoming Write Protected for some unknown reason. That would stop the OPT file updates.

  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 31 January 2023 09:57 AM UTC
  2. PowerBuilder
  3. # 4

I have had a similar problem in all versions of PB.

If you set a new debug stop and the app crashes, that stop is gone.

What I usually do, is set the stop, open the application and immediately close it down. That way at least my debug stop has been saved and I can go back debugging without having to set it again and again.

regards

Comment
  1. Yiannis Papadomichelakis
  2. Tuesday, 31 January 2023 10:48 AM UTC
No... this doesnt work for me.

If I open, define a breakpoint and close the IDE, when I reopen it I have no breakpoints. The list is empty.
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 31 January 2023 10:53 AM UTC
What I meant with "open the application" is "RUN the application". I was not referring to the PB IDE with "application".

  1. Helpful
There are no comments made yet.
Steen Jakobsen Accepted Answer Pending Moderation
  1. Tuesday, 31 January 2023 09:38 AM UTC
  2. PowerBuilder
  3. # 5

I have the same problem in pb2022

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.