开发者

how do i integrate jboss with eclipse to run debug process

开发者 https://www.devze.com 2023-02-19 05:23 出处:网络
hey guys please help me to find a way out for debugging my application on eclipse helios. i have to configure jboss and debug my a开发者_Go百科pplication

hey guys please help me to find a way out for debugging my application on eclipse helios. i have to configure jboss and debug my a开发者_Go百科pplication

please guide me

thanks a lot


If you're deploying your application via Eclipse, then heldt's comment above is enough for you. However, if you're not you can make use of the remote debugging capabilities built-in to the Java platform.

  1. Import your project into Eclipse

  2. Start JBoss in debug mode (make note of the port being used, it's usually 8787) by editing the configurations to look like the following:

    set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%  
    
  3. Use the debugger in Eclipse to connect to the server process on the debug port. On my setup of Eclipse 3.5, I need to go to Run > Debug Configurations, select Remote Java Application from the sidebar, create a new configuration and set the appropriate connection parameters.

Here are are links to a few tutorials that explain this process in more detail:

  • http://blog.mangar.com.br/?p=53
  • http://www.jacoozi.com/index.php?option=com_content&task=view&id=119&Itemid=134
  • http://onjava.com/onjava/2005/08/31/eclipse-jboss-remote-debug.html
  • http://java.sys-con.com/node/44918
0

精彩评论

暂无评论...
验证码 换一张
取 消