This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 124896 - Ability to disable error dialog for dev builds
Summary: Ability to disable error dialog for dev builds
Status: RESOLVED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-08 16:20 UTC by _ gtzabari
Modified: 2008-04-22 17:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2008-01-08 16:20:16 UTC
Dev builds pop up an error dialog whenever Netbeans throws an exception whereas release builds display a non-intrusive
icon in the bottom right corner. There are times where a dev build throws the same (annoying) non-fatal exception [1]
over and over again and it will take days for the Netbeans team to fix it because it's specific to the contents of your
source code. That's okay but there should be a way for us to switch to release-mode of reporting so the error dialog
doesn't keep on popping up every two seconds.

[1] For example see http://statistics.netbeans.org/analytics/detail.do?id=13655
Comment 1 Jan Lahoda 2008-01-08 23:14:34 UTC
This can be achieved by disabling the assertions (delete -Jea from "netbeans_default_options" in etc/netbeans.conf).
AFAIK, it can be also achieved by setting the log level correctly, but I do not know the exact command.
Comment 2 _ gtzabari 2008-01-08 23:25:51 UTC
Are you sure all Netbeans-related exceptions are assertions? Does the error dialog ever pop up otherwise?
Comment 3 Petr Dvorak 2008-04-22 17:38:51 UTC
> Are you sure all Netbeans-related exceptions are assertions? Does the error dialog ever pop up otherwise?

gtzabari, if you tried it as I did just now, you would know that jlahoda gave you a solution to your problem. ^_^

If you go to the "<netbeans_dir>/etc/netbeans.conf" and if you delete the "-J-ea" parameter from the
"netbeans_default_options" property, development version of NB IDE throws exceptions exactly the same way as the release
version (quiet exceptions, just icon in the status bar, I just tried it with a random IllegalArgumentException).

I will close this issue as INVALID, but feel free to reopen it if you find it appropriate (for example if you think it
should be possible to edit this setting directly from the IDE somehow, which I think would be nonsense, as the setting
would be useful just for users working with a development version).