masochistically

adverb
  1. in a manner that derives pleasure or satisfaction from one's own pain, suffering, or humiliation
  2. Usage: often used to describe self-destructive or self-punishing behavior; can be used literally (relating to masochism) or figuratively

Examples