https://bugs.documentfoundation.org/show_bug.cgi?id=91780

            Bug ID: 91780
           Summary: BASIC Debugger Stops at Incorrect Line
           Product: LibreOffice
           Version: 4.1.2.3 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

In order to reproduce, open a new document, create a new module and add the
following:

Sub foo(a as variant)
    Dim b as variant
    b = a
    msgbox("Hello, " + a)
    a.bar()
End Sub

Sub Main
    foo("World!")
End Sub


Then step into Main and into foo. On 4.1.2.3, the debugger stops at the line
with the declaration of foo's arguments stating 'Object Variable Not Set'.
However this error is in fact caused by attempting to call a member function on
a variant containing a string and not an object.

I believe that the correct behaviour would be for the debugger to produce the
error message on the line containing the call to bar as otherwise this can
mislead the author from the real cause of the error - stopping on the
subroutine argument list implies that there was a problem with passing the
variant into the sub.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to