Complex sentence: MBASIC also had a "trace" function that displayed line numbers as they were executed; while this occupied the same screen space as normal program output, it was useful for detecting conditions such as endless loops.
Split into simpler sentences: MBASIC also had a "trace" function that displayed line numbers as they were executed. While this occupied the same screen space as normal program output, it was useful for detecting conditions such as endless loops.