misfire / engine cutting off on 1999 Pontiac Bonneville

how do you test or check the crankshaft position sensor and mass air flow sensor

Asked by for the 1999 Pontiac Bonneville
1 answer
most techs will use a scope to watch the patterns. a shop can do this for you for a nominal fee. that will pinpoint your failure, if they are suspected.
did you check the basics first, like plugs, wires and coils??