From what I can figure out, you could do something along the lines of snes.getLineSearch()
at some point but the SNES object does not have that attribute in my petsc4py. How would you go about monitoring the line search?
EDIT: I updated petsc4py from 3.23.2 to 3.23.4 and got the LineSearch attributes back.