Add a QgsDebugCall macro to trace entering/leaving functions

Replace manual debugging lines used for the same purpose in a couple
of implementation files for node tool.