Place the selected drum machine pad into Solo mode.
Use Drum Machine Designer pad controls in Logic Pro – Apple Support
Solo button: Use to hear the sound in isolation. This solos the subtrack. All other pads are muted, indicated by a flashing Mute button. Multiple pads can be soloed.