fix activate/deactivate debugger
fix bind events
add comments
fix debugger scopes
add debugger scopes validator
separate debugger scopes validator as function