My wife was a litigation lawyer for many years (she now works in-house) and while I can see the similarities with coding & debugging I think it would be the most frustrating thing imaginable.
Imagine having code where the people writing it never run it (the people writing contracts often aren't the people who would run litigation) and where you would spend months arguing with other people what you think the code would do if it was run and only very rarely actually "run" the code in court and when you do it's difficult to predict what will actually happen!
Imagine having code where the people writing it never run it (the people writing contracts often aren't the people who would run litigation) and where you would spend months arguing with other people what you think the code would do if it was run and only very rarely actually "run" the code in court and when you do it's difficult to predict what will actually happen!