[Solved] IDE: Macro does not stop at breakpoint

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
nunof32
Posts: 59
Joined: Sat Jul 28, 2012 9:52 am

[Solved] IDE: Macro does not stop at breakpoint

Post by nunof32 »

Hello,

[Not sure I am posting on the right forum, admin please move to where it belongs if wrong]

I am debugging a macro and all of a sudden, today, macros do not stop execution at breakpoints.

To make sure I am not dreaming I wrote :

Code: Select all

Sub testBreakpoint
	msgbox("This line has a breakpoint")
End Sub 'testBreakpoint
and defined a breakpoint for the line with msgbox.

The macro runs through to its end without stopping at the breakpoint.

I have made sure the breakpoint properties say it is 'active'.

I have shutdown the computer and start it again.

On one or two occasions the macro did stop at the breakpoint. But since then it does again not stop. One of the times it did stop, when I pressed 'Step In' it jumped to the code of extension 'Basic IDETools'.

I am probably facing some kind of corruption in my installation of OpenOffice. Is there any way I can recover from that ? (Without debugging I am really stuck with my development)

Thanks very much in advance.
Last edited by nunof32 on Mon Jan 04, 2021 9:59 pm, edited 1 time in total.
OpenOffice 4.1.10 with MacOS X 10.13.6
User avatar
MrProgrammer
Moderator
Posts: 5424
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: IDE breakpoint macro does not stop at

Post by MrProgrammer »

nunof32 wrote:… jumped to the code of extension 'Basic IDETools' …
Ah, so you've installed an extension! Perhaps the extension is causing the behavior that you've reported. Extensions alter the standard operation of OpenOffice. That's the point of creating one. You should remove the extension and see if the problem persists. If you are having difficulty with an extension, you can try to contact the author. Only the author — not folks here — can fix the extension if it works incorrectly.
nunof32 wrote:I am probably facing some kind of corruption in my installation of OpenOffice
[Tutorial] Mac FAQ Q28/A28
"Corruption" is hardly ever in the application code but instead in the user profile (Q02/A02). On the Guest User account you will get a fresh, uncorrupted profile for testing. If the breakpoint feature works as expected on the Guest User, you can reset your profile on your standard account in hopes of resolving the problem that way. If the breakpoint feature still fails on the Guest User, you can deduce that the user profile is not the source of the problem.

The extension will not be installed when you use the Guest User. You can install it there, of course. So you can also use that environment to test if the extension is responsible for the "corruption in my installation". I have no further suggestions for you. I do almost no work with the API and the IDE.

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
User avatar
Villeroy
Volunteer
Posts: 31363
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: IDE: Macro does not stop at breakpoint

Post by Villeroy »

Breakpoints have no effect on lines with Msgbox, Dim and possibly some other keywords.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
nunof32
Posts: 59
Joined: Sat Jul 28, 2012 9:52 am

Re: IDE: Macro does not stop at breakpoint

Post by nunof32 »

I'm off the hook, problem went away by itself after ... dinner.

Thanks to all who tried to help.

Incidentally, I have learned quite a bit from the Mac FAQ tutorial. Thanks for pointing me to its existence.

I have been using the 'Basic IDETools' extension for quite a while without noticing problems. It might still be the culprit. The strangeness would be in the intermittence of the problem.

The info that breakpoints are insensitive to lines with Msgbox needs confirmation. On occasion I now have the macro stopping there (again : on occasion).

Thanks again and regards.
OpenOffice 4.1.10 with MacOS X 10.13.6
JeJe
Volunteer
Posts: 3132
Joined: Wed Mar 09, 2016 2:40 pm

Re: [Solved] IDE: Macro does not stop at breakpoint

Post by JeJe »

Breakpoints work on both lines with msgbox and dim for me.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Post Reply