Key Points
Pausing at a Line With node inspect
- Joan’s November export has three bad rows, and both imports report them in the same four lines. But what did line 3’s amount field hold?
- In Python, you’d put
breakpoint()right after the amount is converted, and the usual run stops at pdb’s prompt
Porting breakpoint()
- The port’s matching line is a
debuggerstatement, a keyword, not a call, afterNumber()converts the amount - Run the port with
node, as usual. What does the terminal show? - The report: the same four lines as before, and the exit code is 1
Why Nothing Stopped