I'm not talking about locking people away per se. I'm talking about giving troubled kids another outlet to tackle their issues before they erupt.
The problem about this whole debate is that it is way too emotional. As soon as somebody talks about gun control people are going to scream "dont take away muh guns"/ "guns don't kill people, people do", as soon as somebody is talking about anything else people are going to scream that it's a gun issue. But the thing is, mass shootings are only a symptom of a disease that is brewing under the skin of our society. Mass shootings aren't there only because there are too many guns, and mass shootings aren't there only because there are too many teens that have some problems. Most of those shooters don't have some "hard" mental illness like schizophrenia, but rather have experienced stuff that has brought them to the point where they want to take revenge and end their own lives.
The thing is, gun control will only get you so far; yes, gun control will be able to limit the number of school shootings and likely the number of deaths, but it does not solve the real problem. Potentially other weapons will be used, for example in Europe there were a lot of Islamic terror attack with cars/trucks since weapons are more strictly regulated. Also you can access ingredients for some explosives legally. Gun control will limit mass shootings, but it does not solve the real problem that we have that a share of our population is feeling so left out that they are willing to turn on society. This, you can only fix by taking care of people, and fighting mental illness is one way to do it as a society as a whole.
So sure, if you want the shootings to end, take away the guns. But don't be surprised if the next thing we are going to talk about is school bombings or school car attacks