How to force devices to run in sequence for debugging

How can it be done?