Fix debug integration.

`debug` integration broke a few versions of `debug` ago when the project was restructured.

This is a pretty brittle solution but it works.