Add debugging logic to spread file
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### What needs to get done
Copy the debugging logic from rockcraft's spread file.
See: https://github.com/canonical/charmcraft/pull/1641#issuecomment-2050146006
### Why it needs to get done
Would have saved us time today
Evaluation history
No evaluation history available.