This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remote Debugging in EAServer

 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using EAServer 5.1. I am trying to get Remote Debugging to work. I am using JBuilder 2005. I have searched a lot of places with little to no luck. Does anyone have any experience in this? Most of the documentation on Sybase and Borland's websites are for older versions.
Thanks,
Tom
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually Remote Debugging is completely about an option you can set when calling java.

java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n

the address can be any port number that you want. IntelliJ's configuration for Remote Debugging is address=5005, whereas Eclipse is 8000, or 7000, or 5000 I forget which one.

Now it is all set up.

In JBoss, I got to the run.bat file and modify it to set an environment variable called JAVA_OPTS and set it to include the "-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

Hope that helps.

Mark
 
Jan Rotthaus
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tom,

as the Sybase EAServer is no java server you cannot use the java command line options Mark mentioned. You have to start your server using the debug option instead:

The options like port etc. can be configured on the "Java Debug" tab of the server properties using EAServer Manager.

You can find more detailed information in chapter 11 of the EAServer Programmer's Guide. There is a whole section on "Debug Java Components".

Best regards,

Jan
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Sybase EAServer is no java server"

Really, I am unfamiliar with EAServer. What type of server is it? and if it isn't java, then how can you remote debug the Java code? Or is this remote debugging that has absolutely nothing to do with Java.

Thanks

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic