[debug] debug option handling