Print / Debbug from inside user defined function ?

Hello.

How can I debbug UserDefinedFunction ?
Tried to use:
print '123'
and got an error that I can't use the "print" function...

Thanks

Comments

  • : Hello.
    :
    : How can I debbug UserDefinedFunction ?
    : Tried to use:
    : print '123'
    : and got an error that I can't use the "print" function...
    :
    : Thanks
    :

    If print is not good enough or it's not working, (??), and since you cannot debug a function, then why don't you try using a simple table to store the messages or values you need to see from your function:
    INSERT INTO TabDebugFunc('function just did this...'). Maybe this can help you.
  • : : Hello.
    : :
    : : How can I debbug UserDefinedFunction ?
    : : Tried to use:
    : : print '123'
    : : and got an error that I can't use the "print" function...
    : :
    : : Thanks
    : :
    :
    : If print is not good enough or it's not working, (??), and since you cannot debug a function, then why don't you try using a simple table to store the messages or values you need to see from your function:
    : INSERT INTO TabDebugFunc('function just did this...'). Maybe this can help you.
    :
    Sorry If I forgot to mention that the idea is to modify temporarily the function so that it returns the 'debug' table instead of the data that is supossed to return normally, (I hope your function is not returning a table already)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion