Added preliminary support for debug option.
Added preliminary support for debug option.