Description: see steps to reproduce Steps to Reproduce: 1. Load the attached document. 2. Open StarBasic's IDE 3. Input "ThisComponent" into Watch window(or Observer?) and press Enter 4. "Step In" in Main() 5. Check what the type of ThisComponent is Actual Results: Watch Window says the type of ThisComponent Expected Results: Watch Window should say ThisComponent is of type XModel (probably. Is there any thing more suitable?) Reproducible: Always User Profile Reset: No Additional Info: SbxObject has a constructor that takes OUString as its paramter. This parameter is for Class's name, not for the variable name. https://opengrok.libreoffice.org/xref/core/basic/source/sbx/sbxobj.cxx?r=29d35c82#41 https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbunoobj.cxx?r=fbc038cc#2274 https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbunoobj.cxx?r=fbc038cc#2873 https://opengrok.libreoffice.org/xref/core/basic/source/basmgr/basmgr.cxx?r=754c6af4#1408 https://opengrok.libreoffice.org/s?refs=SetGlobalUNOConstant&project=core
Created attachment 151751 [details] document to be used in STR
Submission done. https://gerrit.libreoffice.org/#/c/73142/
typo: >Watch Window says the type of ThisComponent =>Watch Window says the type of ThisComponent is ThisComponent
Tomoyuki Kubota committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/00f4722032cd3abb02180d2df6b9cb580736cb7c%5E%21 tdf#125564: WatchWindow should report correct type for global constants It will be available in 6.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.