Print costs of non-leaf nodes in item trees for the debugger