Car dies if I’m not giving it gas...

If you don't have a charging system tester, go to your local auto parts store and get your alternator tested.