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 40424

Summary: Server status is not updated during debugging
Product: serverplugins Reporter: L Martinek <lmartinek>
Component: InfrastructureAssignee: Martin Grebac <mgrebac>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description L Martinek 2004-02-24 15:52:35 UTC
I noticed that server node in Server Registry has
now status. However this status is not updated
when you run debugger. The server is running in
debug mode, but status is 'stopped'.
Comment 1 Nam Nguyen 2004-02-24 23:09:13 UTC
The reason is that the update of state depends on
ServerInstance.isRunning() calls.  With debugger,
ServerInstance.getStartServer().isDebuggable(target) is called
instead.  The fix is to write ServerInstance.isDebugging() to wrap
isDebuggle() call and if isAlsoTargetServer(target) then do same thing
as isRunning doing.
Comment 2 Martin Grebac 2004-02-25 09:43:40 UTC
Fixed in trunk - status is refreshed now when server starts in debug mode.
http://j2eeserver.netbeans.org/source/browse/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerInstance.java.diff?r1=1.24&r2=1.25

Nam, I believe you have been thinking of a different thing - adding
info that server is started in debug mode - this is an enhancement. I
asked Libor to file an enhancement for this, I don't think we must
have it in this release.
Comment 3 L Martinek 2004-02-25 10:34:28 UTC
Enhancement filled as issue #40449.
Comment 4 L Martinek 2004-02-26 10:26:52 UTC
verified