• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Viewing source code when Remote Debugging in Eclipse.

 
v ray
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic