File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Debugging EJBs local variables not resolved Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Debugging EJBs local variables not resolved" Watch "Debugging EJBs local variables not resolved" New topic
Author

Debugging EJBs local variables not resolved

Markus Schmider
Ranch Hand

Joined: Feb 25, 2007
Posts: 86
JBoss 6 M5, JBoss Developer Studio 3.0 GA (or Eclipse Java EE IDE for Web Developers. Build id: 20100218-1602 same symptoms)

I am trying to debug an EJB application.

I start the server with
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%
(I have also tried suspend=y)

I have a Debug configuration :

Connection Type: Standard (Socket Attach)
Host: localhost
Port 8787
When I set breakpoints in EJBs and run this configuration, the application stops at the breakpoint

BUT
in EJBs no local variables are displayed, only instance variables and the method arguments (named arg1 ... argn).
When I try to add a local variable to the Expressions it cannot be resolved.

Any ideas how this problem could be solved would be welcome.


Hans
Markus Schmider
Ranch Hand

Joined: Feb 25, 2007
Posts: 86
Figured it out my ant build script omitted the debugging informations for variables:

with

It works
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Thanks for posting that!

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Debugging EJBs local variables not resolved
 
Similar Threads
Running JBoss In Debug mode
Unable to open debugger port
Remote Debugging with Eclipse / JBoss does not work any more
Not able to do debug in jboss-4.2.3.GA
Running JBoss Project in Debug Mode