Thoughts on making Cycles into a spectral renderer

VSCode has a great python debugger, you can copy the script and debug it following the instructions here. You can set breakpoints and inspect the values in variables.