Versions Compared

Key

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

...

  1. Connect
    • Name: SakaDebug
    • Project: leave blank
    • Connection Type: Standard (Socket Attach)
    • Host: localhost
  2. Port: 8000 (as defined above)
  3. Source
    • Click Add and select Java Project icon
    • Click Select all projects (note to self only: deselect local database project)
    • Uncheck Add exported entries of selected projects (otherwise references to Maven_Repo, etc. are added)
      #Common
      #*Stay with defaults
  4. Click Apply (debug session should start, otherwise click Debug icon and click on named debug profile)

Sample debug sessions

Exampe I: Legacy-service walkabout

Set a breakpoint in org.sakaiproject.service.legacy.user.cover.UserDirectoryService, specifically in method:

public static org.sakaiproject.service.legacy.user.User getCurrentUser()
Set a breakpoint in org.sakaiproject.component.legacy.realm.DbRealmService.java

public Set unlockRealms(String userId, String lock)

Change to Debug perspective, click Debug icon and select named debug profile to start debug session.

Example II: Adding a user

Set a breakpoint in the UserDirectoryService.java

public static org.sakaiproject.service.legacy.user.User addUser(...) throws org.sakaiproject.exception.IdInvalidException, org.sakaiproject.exception.IdUsedException, org.sakaiproject.exception.PermissionException

Change to Debug perspective, click Debug icon and select named debug profile to start debug session.