better debug logging with file+line locations