Bug 152466 - Basic editor: The Watch isn't update during debug for some array
Summary: Basic editor: The Watch isn't update during debug for some array
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: BASIC-IDE
  Show dependency treegraph
 
Reported: 2022-12-11 13:40 UTC by Kamil Landa
Modified: 2022-12-13 17:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
examples with no update Watch during debuging (131.92 KB, image/png)
2022-12-11 13:40 UTC, Kamil Landa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kamil Landa 2022-12-11 13:40:58 UTC
Created attachment 184093 [details]
examples with no update Watch during debuging

Put to the Watch the variable 'level' and debug this macro step-by-step. 
After the line 'level(0)=p2' it will changed the information in Watch, but after the line 'level=level(0)' it will not change the Watch.

Sub dynamArray
	dim p(2), p2(2), level as variant
	level=p
	level(0)=p2
	level=level(0)
End Sub

But if you add the variable 'level' to the Watch after the debugging the line 'level=level(0)', the it is OK. 

Version: 7.5.0.0.alpha1 (X86_64) / LibreOffice Community
Build ID: 2b4d136b65bc79a1248876160e85fab79d52d5d6
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: cs-CZ
Calc: CL threaded
Comment 1 raal 2022-12-12 19:34:47 UTC
Hello, is it only refresh of watch window issue? Because when I do the following steps:
Put to the Watch the variable 'level' and debug this macro step-by-step.
do not unfold "level" variable in watch window
doing debugging to the line 'level=level(0)'
unfold "level" variable 

then it's correct?
Comment 2 Kamil Landa 2022-12-13 14:37:39 UTC
Yes, it is correct. The problem is with the refreshing of unfolded variable if the variable is array of array.
Comment 3 raal 2022-12-13 17:17:00 UTC
I can confirm with Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)

and Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 705b2924a14841883b4a8cac549f7af326d7a185
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded