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 57165 - Do not show Debug UI for servers that do not support debugging
Summary: Do not show Debug UI for servers that do not support debugging
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 07:40 UTC by Kirill Sorokin
Modified: 2009-02-13 20:31 UTC (History)
1 user (show)

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 Kirill Sorokin 2005-03-30 07:40:46 UTC
There seems to be no way to disable 'Start Server (Debug)' button in the 'Start
Server' dialog. I assume that the return value of the StartServer.isDebuggable()
method should be used for these purposes.
Comment 1 Nam Nguyen 2005-03-30 08:09:00 UTC
The method javadoc:
    /**
     * Returns true if the given target is in debug mode.
     */
    public abstract boolean isDebuggable(Target target);

Unfortunately there is no API for plugin to tell that is could start server in
normal mode but could not start server in debug mode.
Why there is such exception?  Debug mode could be done with just jvm options, so
I am just curious on this need.
Comment 2 Sherold Dev 2005-03-30 08:18:54 UTC
I'm afraid this is not fixable now. AFAIK the StartServer.isDebuggable(Target)
method doesn't say whether the given target can be debugged but whether it is
currently running in the debug mode or not. The method name is quite confusing.
Comment 3 Pavel Buzek 2005-04-01 14:28:45 UTC
Not solvable now. We could add API for this (perhaps smth like public bbolean
supportsDebugging() into StartServer) in future.
Comment 4 Alexander Kouznetsov 2005-05-30 16:52:43 UTC
This issue is critical to JSE. Debug Project menu item should be also disabled
Comment 5 Vince Kraemer 2009-02-13 20:31:45 UTC
it looks like this got implemented