Debtors' prisons were strange places, very different to a modern prison. The prisoners, although already in debt, were expected to pay for their accommodation and various privileges such as access to cooking facilities. Many of the inmates' families had no means of support while the debtor was inside, so joined them within prison walls, meaning that Marshalsea was (a rather grim) home to men, women and children. Dickens himself would join his family, all of whom were living inside the prison, for breakfast and dinner. A debtor would remain imprisoned until the creditor was satisfied - or, of course, until they paid off the debt. However, with no means of earning money and the debt increasing while they were unable to repay it, few people could simply settle their debts.
The prison moved to this site in 1811, having previously been located a little further north. It closed in 1842, and most of its buildings were later demolished. This wall alone remains, but no longer closes off prisoners from the outside world. Instead, you can walk where prisoners once did along what is now Angel Place; step through the gate and you enter the pleasant and peaceful St George's Gardens.