HACKER Q&A
📣 bluelightning2k

How do you debug prod data in dev?


Hey,

In both my companies I've had issues replicating issues for specific users/accounts.

Seems to me to options are

1. Copy all of prod to dev

2. Maintain custom scripts to pull a significant subset

3. Override env variables to actually connect to prod & try not to mess up

Then similarly with user-emulation the only option I can see is a hacky script.

I'm considering building tooling around this & just curious how this works in other companies.


  👤 Simon_ORourke Accepted Answer ✓
Short answer is don't - I had to pump some Prod data through a backend travel booking system years back, and unknown to me the CEO was using the dev backend and UI to demo to investors. It didn't look too secure when his demo started populating with real email addresses.

If you've really got to do it, write a script that emulates prod data with fake made up examples.


👤 JojoFatsani
One of the tougher problems in the realm. I suppose the best is to generate a scrubbed dataset.