Debugging F2Py and python projects

I have a f2py project that consists of native python files, pyf files and the .f90 files. Is there any document that shows best practices how to go about debugging a f2py project ?


There are some flags you can use when running f2py. they affect the different stages of compilation: either creating the C-API interface between python and fortran, or debugging the fortran code itself. I am not sure which suits your case without more information.

1 Like

Thanks for your response.

I have put print statements in my fortran code , recompiled the package using pip but when I run the code the print statements in the fortran code are not visible.