• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Eclipse debug not finding the code block

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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%
 
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
This will take every ounce of my mental strength! All for a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic