Best thing to do with panic attacks is to get an understanding of what they are first- this really demystifies them. The best explanations of panic attacks and anxiety comes from cognitive behavioural therapy (CBT). Basically the fight or flight mechanism we all have to survive is identifying certain things as triggers to go into action. This cause adrenaline to be released into the system and hence the feelings you get.
some helpful things to know
this is one of the most treatable things without any need for medication
really important to know that the anxiety builds and makes you feel like you need to run, fight or do something. However when it peaks it then starts to drop again returning to a comfortable state. The body has simply released its dose of adrenalin and then it will stop, other calming chemicals are then released and they do their job, calming you.
Problem is most people have run out the door before this point, this only reinforces the notion that you have to escape the situation to calm down. by knowing that in the situation that triggers the anxiety there is a point where it will peak and subside , by putting yourself through that your brain will join the dots and say, oh ok this situation should not trigger an adrenaline response.
During this, deep breathing and some positive thinking will help get to the point when it peaks and you wont have ran out the door into oncoming traffic in the meantime.
Like i said - read about CBD and panic attacks- you will get your head around it