Make debug more efficient

Don't check every time (at the cost of not being able to change online)
Make pgString far more efficient

Still has encoding problems, but that's next