House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

ColdFusion Debugger on OS X with Multiple instances

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi Ben,
Dipanwita Sarkar
05/14/08 10:11 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dipanwita Sarkar
05/14/2008 10:11 AM

Hi Ben, Yes, you do need to use separate jvm.config files for debugging to work on the CF instances, and start them from command line as: jrun -config <path_to_jvm_config> -start <server_name> If you launch a server instance from CF admin, it will use one jvm.config (user specified). But if you launch from JMC, it is going to use the default (shared jvm.config in jrun/bin) jvm.config. Thanks, Dipanwita I'm running multiple instances of CF on my Mac with Apache and haven't been able to successfully use the line debugger. I can get all the tests to pass and the debugger even starts but when I set a break point and try to run a page the debugger doesn't show me anything. I have several virtual hosts set up each with their own instance of JRun running. I read on someone's blog that with windows you have to create separate jvm.config files for this to work but I'm not sure if this is the case for OS X. Is anyone running multiple instances that is using the line debugger successfully? Thanks, Ben

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ben Densmore
05/14/2008 10:59 AM

Ok, so I created a new jvm.config file named jvm_js.config I added -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006 to the config file, started up CF via command line pointing to this new config file and changed the port in the CF Admin to 5006. I now get this error in Eclipse: "The debugger server is currently listening on port 50909. The port is not the debugger port set in the ColdFusion Administrator. This port is selected randomly each time the debugger server starts." Thanks, Ben ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dipanwita Sarkar
05/14/2008 11:22 AM

The port number you specify in the admin is for the JVM. The JVM listens at this port for debugger command from debugger server. The port number that you can specify in Java & JVM options in CF Admin using -DDEBUGGER_SERVER_PORT is for the debugger server. This is the port number at which debugger server listens for debugger commands from the Eclipse client. This port number need not be specified by the user. If not specified, ColdFusion launches the debugger server with any random available port, in your case 50909. This could be a problem if CF is behind firewall and the random port that debugger is listening is blocked by the firewall. In such cases users can tell ColdFusion not to use a random port, and specify the port number. User can then allow this port in the firewall. Please try changing the debugger server port number to something else in CF Admin. Thanks, Dipanwita Ok, so I created a new jvm.config file named jvm_js.config I added -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006 to the config file, started up CF via command line pointing to this new config file and changed the port in the CF Admin to 5006. I now get this error in Eclipse: "The debugger server is currently listening on port 50909. The port is not the debugger port set in the ColdFusion Administrator. This port is selected randomly each time the debugger server starts." Thanks, Ben > Hi Ben, > > Yes, you do need to use separate jvm.config files for debugging to work ----- Excess quoted text cut - see Original Post for more ----- to ----- Excess quoted text cut - see Original Post for more ----- run > a > page the debugger doesn't show me anything. > > I have several virtual hosts set up each with their own instance of JRun ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ben Densmore
05/14/2008 11:48 AM

Thanks for the help Dipanwita. It works now!. Ben ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference