title: Start Websphere Liberty in Debug mode and connect via Eclipse
body: <p>I am searching for a way to start the Websphere Liberty profile in debug mode from the command line? I want to be able to start Liberty, so that it is listening for debug connections on a specific port. Then I would like to connect to Liberty from Eclipse, so that I can step through and debug the server code running in Liberty.</p>
  
  <p>I've tried integrating Liberty into Eclipse and using the Eclipse 'Servers' view. This works great and I can start and stop Liberty using debug mode. Unfortunately, this method does not satisfy my use case because the build process uses tools external to Eclipse.</p>
  
  <p>Essentially, I need a way to do this via the command line.</p>
  
  <p>I tried creating a jvm.options file for Liberty and starting it, but I still can't connect to the port I specified. I'm sure I'm doing something wrong, but thus far I haven't figured it out.</p>
  
  <p><a href="http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=/com.ibm.websphere.wlp.nd.doc/ae/twlp_admin_customvars.html" rel="nofollow">This page</a> has some info on jvm.options</p>