Visual Studio Code Debugger (Java)
The possible reason is your bin path is pointing a jre. But Java Debugger requires you to use JDK instead. So the fix is changing java.home
user setting in VS Code to your JDK home directory.
In my case, uninsall and reinstall the "C/C++ Extension" and than resolve the problem. (My case is occurred in C++ debuging environment)