Hi Mirko,
Please make sure you are running Virtuoso server in forground.
As you have win machine, you can ex. make a xx.bat file that contains this:
-------------
:start
c:\path-to-your-Virtuoso-installation\bin\virtuoso-odbc-t.exe -f -c
"C:\path-to-your-Virtuoso-installation\your-db-folder\virtuoso.ini"
pause
goto start
-------------
Just tried on Win7 with the bat from above and I can see the following output
on the server console after calling your procedure:
Start function
Value:4
Best Regards,
Rumi
----- Original Message -----
From: Mirko Madon
To: [email protected]
Sent: Thursday, November 22, 2012 2:39 PM
Subject: [Virtuoso-users] dbg_printf does not print to console
Hello.
I have a simple test function from which I want to write some debug strings
to my virtuoso console, but I can not get it to work.
CODE: SELECT ALL
create procedure DB.DBA.TEST1()
{
--pl_debug+
declare x, y any;
dbg_printf('\nStart function');
x := 1;
if (x = 1)
{
y := x + 3;
}
else
{
y := 2;
}
dbg_printf('\nValue:%d\n', y);
return y-1;
}
I run cmd on windows 7 as administrator, run isql console interface and call
a test1() function. I get output with no debug strings. It looks like this:
CODE: SELECT ALL
c:>isql localhost:1111 dba dba
sql:>select db.dba.test1();
test1
VARCHAR
-----------------------------------------------
3
1 Rows. -- 0 msec
sql>
Why is there no debug string? Am I doing something wrong?
Thank you.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users