Fix debug function parameters

Now its building