Bug 104947 - Breakpoints don't work first time round
Summary: Breakpoints don't work first time round
Status: RESOLVED DUPLICATE of bug 97432
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
5.2.3.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-27 18:36 UTC by Peter Toye
Modified: 2016-12-28 10:02 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Toye 2016-12-27 18:36:28 UTC
The first time a breakpoint in an LO macro is hit the code doesn't break. Run the macro again and it works OK. For instance:

Sub Main

dim i as integer

i=1

While i < 5

' Put a breakpoint on the next statement
msgbox ("Repeat " & i)
i=i+1

wend

msgbox (" ended")

End Sub


1) Save the macro within the document (it doesn't seem to matter if it's a Writer or Calc - I've not tried others). 

2) Put a breakpoint where indicated.

3) Run the macro from the Tools|Macros|Run macro menu (note: you have to do this from the main LO window, not the LO Basic editor window - no idea why!)

4) It runs to completion.

5) Repeat step 3

6) The breakpoint works.
Comment 1 Regina Henschel 2016-12-27 20:53:56 UTC
You should have searched.

*** This bug has been marked as a duplicate of bug 97432 ***
Comment 2 Peter Toye 2016-12-28 09:37:18 UTC
Sorry, I did search and nothing suitable came up! Obviously "breakpoint" isn't a good search key.
Comment 3 Peter Toye 2016-12-28 10:02:06 UTC
(In reply to Peter Toye from comment #2)
> Sorry, I did search and nothing suitable came up! Obviously "breakpoint"
> isn't a good search key.

Sorry - finger trouble - I misspelled "braekpoint".