vscode-java-debug
vscode-java-debug copied to clipboard
Feature request: set breakpoint on assert fail
Feature request: set breakpoint on assert fail
Currently, when a Java assert fails, a stack trace is written to the terminal and the application ends. We know which assertion failed, but the application state is lost making it impossible to troubleshoot.
It would be nice to set this parameter in settings.json
"java.debug.breakOnAssertFail": true
Once this parameter has been implemented, when an assertion fails, the breakpoint pauses the application at the line where the assert failed, preserving the application state and allowing troubleshooting to proceed.
Eclipse has this feature; VSCode should too.
Thanks!