vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

Feature request: set breakpoint on assert fail

Open loxcel opened this issue 5 years ago • 2 comments

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!

loxcel avatar May 02 '20 20:05 loxcel