wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse debug not finding the code block Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse debug not finding the code block" Watch "Eclipse debug not finding the code block" New topic
Author

Eclipse debug not finding the code block

Arun Christopher
Greenhorn

Joined: Nov 18, 2008
Posts: 19
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

Joined: Jul 02, 2001
Posts: 697
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


SCJP 1.2 (89%), SCWCD 1.3 (94%), IBM 486 (90%), SCJA Beta (96%), SCEA (91% / 77%), SCEA 5 P1 (77%), SCBCD 5 (85%)
Arun Christopher
Greenhorn

Joined: Nov 18, 2008
Posts: 19
That didnt help. Can anyone solve my problem. i think i have very little to correct.
Arun Christopher
Greenhorn

Joined: Nov 18, 2008
Posts: 19
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
 
subject: Eclipse debug not finding the code block
 
Similar Threads
Running JBoss Project in Debug Mode
enable jsf logging
JBoss run.bat not launching not showing any errors just going to next line in the command prompt
Running JBoss In Debug mode
Debugging EJBs local variables not resolved