Implement context menu with Debug Mode option.