wood burning stoves*
The moose likes IDEs, Version Control and other tools and the fly likes Viewing source code when Remote Debugging in Eclipse. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Viewing source code when Remote Debugging in Eclipse." Watch "Viewing source code when Remote Debugging in Eclipse." New topic
Author

Viewing source code when Remote Debugging in Eclipse.

v ray
Ranch Hand

Joined: Mar 15, 2007
Posts: 223
Hi guys,
I have configured Eclipse to connect to my remote server in the Debug mode and I am able to trace the flow under the debug perspective.
However, I am not able to see the sourcecode or the state of the variables when I set checkpoints.
I also get a message "Source not found" under which there is a "Edit Source Lookup Path".
I have tried to point it to the jar which I have deployed at the server but I still continue to get the same message.

Does anyone have a solution to view the source code when I am debugging remotely?

Thanks.
[ September 11, 2007: Message edited by: v ray ]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

You need to have a copy of the source directories accessible via your local filesystem and it needs to be in sync with the binary jar for the stepping and breakpoints to work properly.

Normally, my source code's on the IDE machine and I publish the generated JAR to the server, so that's usually no major problem. I have had issues when using foreign components, such as Jakarta jars that turned out to have been built off a different source release than the one I downlooaded.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
jQuery in Action, 2nd edition
 
subject: Viewing source code when Remote Debugging in Eclipse.