Inside a mass spectrometer:
organic compound is vaporised and passed through the spectrometer
some molecules lose an electron and form molecular ions
excess energy from the ionisation makes the bond vibrate more
vibration causes bonds to weaken
molecular ion splits by fragmentation