You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
Feature request to show full stack trace in the exception pop-up, akin to the-JS experience.
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!
Activity
github-actions commentedon Aug 9, 2026
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[] argsis empty (length 0) when you runmainwithout passing any command-line arguments, so doingargs[10] = nullwill 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 alaunch.jsonconfiguration: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
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!