|
Enhydra: Debugging Enhydra applications in NetBeans: msg#00049java.enhydra.general
The most easiest way to debug is using JPDA Steps: 0. Run your NetBeans. Open your Java files. Set your breakpoints. 1. Run your Enhydra application with these JVM parameters outside the NetBeans environment: -Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=14999,suspend=n Example: %JDK_HOME%\bin\java -Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=14999,suspend=n -Duser.dir=%COMPONENT_HOME%\bin\presentation\enhydra\jonas com.lutris.multiServer.MultiServer %EJOSA_CONFIGURATION% 2. In NetBeans: Debug -> Attach (Use socket attach) Use the same port number -> 14999 as the JVM parameter. 3. Use your application with a web browser. When it reaches a breakpoint, NetBeans will show the location and stop the application flow. You can do whatever you want at this point. This debugging mode is pretty easy to use and works with all kind of "server" type Java applications (EJB container, Servlet container...). I'm using JDK 1.4.1 (JDK 1.3.1 is not that stable in debugging but it also worked). Hope this helps! - -- --------------------------------------------------- Blasius Lofi Dewanto --------------------------------------------------- OpenUSS - Open University Support System http://openuss.sourceforge.net --------------------------------------------------- E-Mail : dewanto@xxxxxxxxxxxxxxx ICQ : 39343280 --------------------------------------------------- I'm trying to debug a servlet that is being called by Enhydra but I can't seem to get NetBeans to understand where the source and class files are... The servlet was built outside of NetBeans using ant (when I try to run the build inside of NetBeans, its environment gets polluted and the build fails, even when I set the netbeans option for ant to ignore all other classpaths). Once I have it built, I make a netbeans project and add the various jars, the build tree (with all the .class files in it) and the src tree (with all the .java files in it). When I start a debug session, Enhydra starts and runs fine, and when I send requests, it calls my app fine, but if I try to set a breakpoint in my source somewhere, the breakpoint never gets triggered.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Enhydra: How to compile wml files with XMLC ?, Blasius Lofi Dewanto |
|---|---|
| Next by Date: | Get a list of all sessions of an application, Boris Klug |
| Previous by Thread: | Enhydra: How to compile wml files with XMLC ?, Blasius Lofi Dewanto |
| Next by Thread: | Get a list of all sessions of an application, Boris Klug |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |