Jeffrey Tao
03/26/2024, 7:31 PMJeffrey Tao
03/26/2024, 7:34 PMimport pdb
at the top and pdb.set_trace()
somewhere in the body of a function. I oftentimes develop by writing the start of a function, getting stuck/unsure of how to write the next step, and running the unfinished code and dropping into the REPL to experiment. In compiled languages, I miss this workflow and replicate it poorly with println "debugging" (is there a name for this? prinln-driven development?)Jeffrey Tao
03/26/2024, 7:34 PMKartik Agaram