Completion does not work debug mode because matlab does not allow creation of variables in a static workspace.