Skip to content

Debug Console should be able to evaluate multiple expressions #31

@bclothier

Description

@bclothier

Describe the bug
This may be a part of preview limitation, but it isn't listed explicitly. The Debug Console does not allow multiple expressions.

To Reproduce

  1. Create a module:
Module Foo
  Public Sub Bar
    Dim x As String = "hi, there"
    Dim y As Long = 123
   
    Stop
  End Sub
End Module
  1. Put the cursor in the procedure and press 5 to run code under the cursor.
  2. VSC will break at Stop
  3. On Debug console, enter: ?x, y
  4. VSC reports: (compile error: Sorry, file operations are not yet implemented.)

This can be worked around by doing:

?x : ?y

Expected behavior
Running ?x, y should return:

"hi, there"     123

Desktop (please complete the following information):

  • OS: Windows 10
  • twinBASIC compiler version v0.9.1602

Additional context
In previous version, expressions like ?Foo("hi there", 123) did not work but this seems to be fixed in the 1602 version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions