Apache OpenOffice (AOO) Bugzilla – Issue 120772
IDE Watch window does not display all fields in user defined types.
Last modified: 2017-05-20 09:32:06 UTC
Originally noted here: http://www.oooforum.org/forum/viewtopic.phtml?p=516942 Enter the code below and then watch the TestRecord. The last three fields are not available in the watch window. Type JobRecord JobNumber As String JobDescription As String ClientRef As String Hours As Single ChargeRate As Single Cost As Single GST As Single MaterialsETC As Single TotalCost As Single OrderReceived As String InvoiceNumber As Single AmountReceived As Single InvoiceSent As Date PaymentReceived As Date End Type Sub Main Dim TestRecord As New JobRecord TestRecord.AmountReceived = 7 End Sub I verified that reordering the fields changes what is visible, so it seems to be related to the number of fields. Note that the original was report on Windows with AOO 3.4, and I verified on Linux using 3.4.1.
Just as reminder. In WatchTreeListBox::RequestingChilds method, last three properties are ignored to hide three Dbg_XXX properties and they are not shown in the watching window.
I could reproduce this error with various other userdefined types everytime the last 3 fields are not displayed. If you add any thre fields before the end of the type definition all fields of interest will be displayed. Type JobRecord JobNumber As String JobDescription As String ClientRef As String Hours As Single ChargeRate As Single Cost As Single GST As Single MaterialsETC As Single TotalCost As Single OrderReceived As String InvoiceNumber As Single AmountReceived As Single InvoiceSent As Date PaymentReceived As Date dmy1 as byte dmy2 as byte dmy3 as byte End Type Sub Main Dim TestRecord As New JobRecord TestRecord.AmountReceived = 7 End Sub ... the type of the the dummy fields does not matter --- they simply have to be there.
Created attachment 84326 [details] Proposed patch to check the object has Dbg_XXX properties for watching SbUnoObject class is not there in public include file, therefore there is no way to know the object that is going to be watch its property value, is instance of UNO object or instance of user defined type. To check the number of properties of the object and check Dbg_XXX properties are added to the end of the array of property names is the proposed solution.
"hanya" committed SVN revision 1651106 into trunk: #i120772# do not ignore last three properties when special properties not fou...
Fixed on trunk.