Fixes in joined promises work
Added Debug.enable function