I was sued by a creditor, I owe the money but I can’t afford to pay the debt. This is a very common scenario for the working class in America.
When you file bankruptcy, all lawsuits against you will be stopped. Also, no lawsuits can be filed against you after the bankruptcy is filed. When the bankruptcy is filed, something called the automatic stay goes into place. The automatic stay is the protection the you receive from the bankruptcy.
Luckily this is automatic, so there is nothing the attorney or you have to do to get this protection.
The lawsuit will be stopped no matter where you are in the process of the lawsuit.
Then the debt will be handled inside of the bankruptcy.