printf works in core and alloc, format! only works in alloc. It seems the best way is to rip the code to be debugged out into a crate and use the usual println! there.
From an answer in Zulip:
x.py setup, then choose library
x.py build -j22 finished in 13 seconds after an edit.