Skip to content

"Failed to evaluate. Reason: Cannot evaluate because the thread is resumed." #239

Description

@Urastor

When using the Scanner class, the debugger does nothing when typing in a value. It stops with the message below.

Environment
  • Operating System: Windows 10 Professional x64
  • JDK version: 8u161
  • Visual Studio Code version: 1.20.1
  • Java extension version: 0.19.0
  • Java Debugger extension version: 0.6.0
Steps To Reproduce
  1. Create a class with public static void main method
  2. Create a new Scanner(System.in)
  3. Create a variable and let the scanner read in an integer
  4. Run the debugger
public static void main( String[] args )
 {
     Scanner scanner = new Scanner(System.in);
     int x = scanner.nextInt();
     scanner.close();
 }
Current Result

Failed to evaluate. Reason: Cannot evaluate because the thread is resumed.
error1

Expected Result
Additional Informations

There is nothing more. No breakpoint set, just created a default java launch and it stopped there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions