Minor cleanup + additional error checking
Stricter filtering for LD debug port launch parameters.