After a suburban district attorney barred her prosecutors from keeping handguns, even at home, her office said the goal was safety. But the now-changed restriction has touched off debate about whether prosecutors should possess firearms.

The Nassau County District Attorney’s Office loosened the policy last week but still prohibits prosecutors from carrying guns at work, saying that could be dangerous or discomfiting in a job known for sensitive, unpredictable situations.