Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I configure eclipse to show Assertion errors?

Tags:

java

eclipse

My eclipse simply does not show the error in assertions... how can I change it? Thanks.

like image 810
caarlos0 Avatar asked Apr 01 '26 16:04

caarlos0


1 Answers

Asserations will always be compiled to the bytecode but are ignored from the Interpreter by default!

Open the project-propertys and go to "Run/Debug Settings", now edit your launch-configuration and add "-ea" argument to the VM-Properties.

Have Fun.

like image 172
Grim Avatar answered Apr 04 '26 07:04

Grim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!