made debug output dependend to debug-variable
@rightmanager-group: maybe use config-files here?
Merge branch 'develop' into exportObject