By default freefem is compiled with the -O2 flags for optimization. If you want to debug the library, then USE the following configure option -enable-debug. That is to say, type
configure --enable-debug