Add unit support for debug function
Don't call getValue() on function with arguments