Bug 170310 - Resume Next has strange behavior
Summary: Resume Next has strange behavior
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.6.5.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-12 14:47 UTC by edil
Modified: 2026-01-29 10:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Copy Function TestExecute() in macro in File.ods e Run TestExecute and read File.ods.txt (843 bytes, text/plain)
2026-01-12 15:02 UTC, edil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description edil 2026-01-12 14:47:50 UTC
Description:
The Resume Next statement resume ed execute the next statement, so in the debug window active line in debug stops at the next next line. So if the next line have a bug, the execution go straight to error handler and Erl is the line of Resume Next (line 20) and not the true error line (line 6 and 11 in my example) 

Steps to Reproduce:
1.Run macro TestExecute in file TestError.ods
2.
3.

Actual Results:
read TestError.ods.txt

Expected Results:
the line of Resume Next (line 20) and not the true error line (line 6 and 11 in my example) 


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.5.2 (X86_64) / LibreOffice Community
Build ID: 38d5f62f85355c192ef5f1dd47c5c0c0c6d6598b
CPU threads: 16; OS: Windows 10.0 Build 26200; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: CL threaded
Comment 1 edil 2026-01-12 15:02:44 UTC
Created attachment 205020 [details]
Copy Function TestExecute() in macro in File.ods e Run TestExecute and read File.ods.txt

Is a simple macro TestExecute() in file.ods, that create file.ods.txt.