debug: front-end and back-end