you should use just EBox::Config::boolean('debug') without the "eq 'yes'" comparation