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
Watch Window says the type of ThisComponent
Watch Window should say ThisComponent is of type XModel (probably. Is there any thing more suitable?)
User Profile Reset: No
SbxObject has a constructor that takes OUString as its paramter. This parameter is for Class's name, not for the variable name.
Created attachment 151751 [details]
document to be used in STR
>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":
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:
Affected users are encouraged to test the fix and report feedback.