简体   繁体   中英

how do i integrate jboss with eclipse to run debug process

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 application

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:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM