Skip to content

run doesn't woRK #1673

Closed as not planned
Closed as not planned

Description

@tanaztanazkhan-ai
No description provided.

Activity

  1. github-actions commented on Aug 9, 2026

    @github-actions

    Hi tanaztanazkhan-ai, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

    Analysis & Suggestions

    • The exception you’re seeing (ArrayIndexOutOfBoundsException: Index 10 out of bounds for length 0) is coming from your code. By default, String[] args is empty (length 0) when you run main without passing any command-line arguments, so doing args[10] = null will always fail.

    • If your goal is to:

      • actually run without that exception, either remove or guard the args[10] access, or pass at least 11 arguments via a launch.json configuration:

        "configurations": [
          {
            "type": "java",
            "name": "Debug (Launch) – Test",
            "request": "launch",
            "mainClass": "Test",
            "args": ["arg0","arg1", … ,"arg10"]
          }
        ]
      • or, if you’re looking to see the full Java stack trace when an exception breakpoint is hit (similar to JS), note that by default VS Code’s Java debugger shows only the exception message in the pop-up and you can inspect the Call Stack pane for frames.
        • To not stop on exceptions, disable “Caught Exceptions” / “Uncaught Exceptions” in the BREAKPOINTS view.
        • To run without halting, use Run Without Debugging (Ctrl+F5) or right-click in the editor and choose Run Java.

    Related Issue

    Other references with low confidence
    • None

    The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions