File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse debug not finding the code block

 
Arun Christopher
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to eclipse(europa - 3.3.0) debugging feature. I added breakpoints at various places in my code. But while debugging(running the application with Jboss - port:8787), eclipse finds the java file where the breakpoint is present, but it is not going to the exact line/block of code. In the debug dialog i can see "line: not available". I think i have attached the source correctly since it finds the file. I have attached the screenshot of the eclipse debug dialog.

Screenshot

I also tried adding line/method/class breakpoints, but eclipse actively finds the java file but fails to snail to the exact piece of code in the file.
Please help.

Additional Info:
i have set JAVA_OPTS in my JBOSS run.bat as
set JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%
 
Paul Michael
Ranch Hand
Posts: 697
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to try the JBossIDE instead.


JBoss Eclipse IDE is a set of plugins designed to be integrated in the Eclipse IDE runtime environment. The current features cover the following:


* Very comfortable and sophisticated support for Xdoclet.
* Debugging and monitoring of JBoss servers and controlling of their life cycles.
* An easy way to configure the packaging layout of archives (packed or exploded).
* A simple way to deploy the packaged and/or exploded archive to a JBoss server
 
Arun Christopher
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That didnt help. Can anyone solve my problem. i think i have very little to correct.
 
Arun Christopher
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved the problem. Now it is working great. All i did is, i just added debug="true" in my ant build.

1. If you are compiling using the eclipse.

Verify the classfile generation options.

Go to windows > preferences > Java > compiler screen.

Make sure that add line number attributes to generated files (used by debugger) check box is checked.


2. If you are compiling classes using ANT.

Look into the build file and make sure that debug attribute is set to true in javac task

Set debug="true" and build again.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic