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
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.