Gumpy is right on. Bring a spare spark plug with you when you ride on a day where you expect problems. As soon as it stalls, and you get off the road, disconnect one plug wire from a spark plug, and connect it to the spare that you brought. The hold the plug up against the engine and crank it over. That way, you'll know whether you need to be troubleshooting a fuel problem or an ignition issue.