Enable debugging based on env setting. [#83253012]