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.
[ JDK VERSION : 1.6.* ] When the user stops a running process using the "cancel" action on the process list (or the "stop" button for a debugged application), the process is stopped abruptly. It would be nice to have a "stop gracefully" action which stops the application sith a sigint signal, allowing the shutdown hooks to be called.
Please move to debugger if you are complaining about debugger behavior.
I'm not complaining about the current behaviour, this is a request for enhancement. I would like to be able to kill the running application from netbeans instead of doing it from the command line. The "cancel" action does the equivalent (under unix) of kill -9, which stops the application immediately, so that the shutdown hooks are not run. Of course this is the right thing to do by default, but the sigint option would be welcome.
What application? C, Ruby, Java, Java EE, etc.? How it is started? Try to be a little more specific.
I think that this may be useful for any application started by the user using the standard ide actions (run/debug), and which spawns its own process. This leaves out all the applications which run inside a container - in this case the run/stop action behaves differently, deploying/undeploying the application to a server. The action I propose is useful when the application that is being developed in the IDE does something useful in response to a sigint signal - usually saving its state or freeing resources. For example a command-line application may want to exit cleanly when the user hits ctrl-c, or a background process when the system shuts down.