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 104521 - unable to run two webricks - one for deployment and one for debugging
Summary: unable to run two webricks - one for deployment and one for debugging
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 15:58 UTC by Tomas Danek
Modified: 2007-09-10 22:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2007-05-22 15:58:54 UTC
NetBeans IDE Dev (Build 070522)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.20-15-generic running on i386
en_US (nb); UTF-8
-------------------------
- create rails app, setup native ruby
- run app with F6
- if you try to launch debugging (F5), it does not work, no new output tab
opens, and debugging session is not started, F5 only causes to invoke new
browser window...the expected behaviour would probably be to start webrick on
some other port. The same vice versa, if webrick is running in debugging
session, it's not possible to start it in non-debugging session
Comment 1 Martin Krauskopf 2007-06-13 14:44:50 UTC
The same for F6, followed by debug-single-file and other combinations. We can either start separate servers for running
and debugging or we may restart the server.
One of us will do it into 6.0.
Comment 2 Jiri Kovalsky 2007-07-03 14:10:52 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 3 Torbjorn Norbye 2007-08-09 23:22:06 UTC
For 6.0 perhaps the best solution is to track in RailsServer whether the server is in debug mode. When you try to debug
a file, if the server isn't in debug mode offer to restart it. What do you think Martin?
Comment 4 Martin Krauskopf 2007-08-10 11:16:44 UTC
> When you try to debug a file, if the server isn't in debug mode offer to restart it.

Yup, probably with "OK/Cancel" dialog. Hopefully for 6.0.
Comment 5 Martin Krauskopf 2007-09-10 22:37:24 UTC
I have fixed this in a way that the server is automatically restarted in debug mode when a debug action is triggered and
server is already running in 'normal' mode. Since then the server stays in debug mode. Without question dialog. It is
easy to add; but too much question is not good and this case seems clear to me.
Please comment if you do not agree.

railsprojects/src/org/netbeans/modules/ruby/railsprojects/server/RailsServer.java;
new revision: 1.12; previous revision: 1.11
projects/src/org/netbeans/modules/ruby/rubyproject/execution/ExecutionService.java;
new revision: 1.13; previous revision: 1.12