Never end your life because of another person. No one else is worth your life, no matter how important he seems to be at the moment. When relationships turn sour or go horribly wrong, it is surprising how just the passage of time will help to put things in the proper perspective.
I've had a lot of people run me over emotionally, financially and otherwise, and not one of them is worth dying over. I know it sounds harsh but it's best just to move on. Be your own best friend! As someone mentioned, there are plenty other fish in the sea, and besides, a good friend (not necessarily in the romantic department) might be waiting for you just around the corner.
I know this sounds strange, but when I was younger and was heartbroken over what another person did to me, I would sit down and type out a letter to that person. The fact that the letter was never sent wasn't the point. I found it to be a very therapeutic practice. List everything; hold back nothing.
After you're finished, be kind to yourself. Take yourself out on a date! Go see a movie, have a great dinner or special treat. Sounds crazy, I know. But when others have hurt us deep inside, we need to seek the strength from within and realize that we deserve better.
BTW, I don't consider ANY problem that is causing a person to think of suicide as trivial or not as bad as some other issues other people may have. It is important to you and evokes very strong feelings, and that is what is important. Hope I'm making sense!