Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Inside eclipse select Run->debug....select Remote Java Application and click 'New...'
  • Give the new debug config a name like 'Testing'
  • Set the host and port (default on tomcat is 8000), choose an eclipse project by using the browse button
  • source locations should be already be set to project source locations, so shouldn't need to change anything
  • Checkmark the 'Allow temination of remote VM'
  • click close and save changes

Test it out

  • Open the src/java/org/sakaiproject/portal/varuna/VarunaServlet.java file in the portal module and scroll to the doGet() method
  • double-click in the left margin (or use another method) to set a break-point near the beginning of the method
  • select Run->Debug... and select the newly created debug config.
  • change to the debug perspective if it does not happen automagically.
  • switch to a browser and login into to the sakai instance

...