|
|
|
|
|
by gjulianm
1615 days ago
|
|
> I especially do this when the code has destructive side-effects (a file gets moved/deleted, a database get updated, whatever), so I can skip over any external actions I don't actually want to occur until I'm ready for a full test run. I always wrap these statements in a function/if-statement/similar thing that allows me to run the tool in "dry mode" so changes are not done but just logged. It's pretty useful because I can reuse that mode whenever I want without reattaching the debugger and stepping again through everything. |
|
My laziness often precludes me from taking that approach until it's clear that it's warranted (but hopefully before I nuke anything critical).