add debug to domain server if script not saved
Merge pull request #3523 from birarda/master

add debug to domain server if script not saved