Submitted by reesd on 2010/11/03 12:01
I sure would like to see some basic script logging as described in http://mantis.sqlnotes.net/view.php?id=174. Having things just silently fail when trying to do equations keeps pushing me away from IQ.
 
d

Comments

I agree. This makes VB scripting very hard to debug at times. This is also true for Equations. Just omit some parentheses somewhere, and it fails silently. :(

This is true. It is possible to install a Microsoft script debugger which help identify errors.
 
3 years ago, I looked into purchasing VBA for IQ, but MS had stopped selling for, just a few months before and is now only selling a .NET equivalent. Since .NET future is unclear, to me at least (and others, e.g. recent EN 4 going back to COM), I hope they'll come up with a new COM based "VBA" which IQ could use.
 

Armando

2010/11/04 19:23

In reply to by Pierre_Admin

[quote=Pierre_Admin]
This is true. It is possible to install a Microsoft script debugger which help identify errors.
 
3 years ago, I looked into purchasing VBA for IQ, but MS had stopped selling for, just a few months before and is now only selling a .NET equivalent. Since .NET future is unclear, to me at least (and others, e.g. recent EN 4 going back to COM), I hope they'll come up with a new COM based "VBA" which IQ could use.
 
[/quote]
 
This is all very interesting... I doubt they'll come back to VB6 though...

reesd

2010/11/11 08:15

In reply to by Pierre_Admin

Hi Pierre,
 
Could you at least add some basic logging somewhere? Just log all script issues to a file, that would help immensely by itself. That is all http://mantis.sqlnotes.net/view.php?id=174 is asking for.
 
I have "activate error log", "log function calls", function call stack at 6, and "show errors and warnings on the status bar" , but all I see is an occasional red message in the status bar without enough info to know what it is complaining about.
 
In terms of using the script debugger you have mentioned it before, but I have never been able to figure out how to make it work. See this thread also asking how to use it also. If you could give us the steps to debug a sample equation using the script debugger that would be very helpful.
 
Thanks,
dave

reesd

2010/11/11 09:06

In reply to by reesd

Here is what I am seeing in the status bar:

lucasd

2010/12/01 19:06

In reply to by reesd

[quote]I have "activate error log", "log function calls", function call stack at 6, and "show errors and warnings on the status bar" , but all I see is an occasional red message in the status bar without enough info to know what it is complaining about.[/quote]
 
Hi Dave--
 
I came across this thread because I was trying to figure out where the error log is stored. Then I found the information here --- ErrorLog.txt is stored in the user file. You probably are already aware of this, but I'm mentioning here just for good measure.
 

reesd

2010/12/10 10:41

In reply to by lucasd

[quote=lucasd] I came across this thread because I was trying to figure out where the error log is stored. Then I found the information
here
--- ErrorLog.txt is stored in the user file. You probably are already aware of this, but I'm mentioning here just for good measure.
 [/quote]
 
Thanks, I actually didn't know that. Never looked at that page since I don;t do portable. I've updated 3.10.20.30 Program Settings>Other (node 713) to list that useful info.
 
I'm still not sure it lists errors in user functions (or when they don't compile).
 
d

lucasd

2010/12/10 11:33

In reply to by reesd

Also note that, from what I can tell, the log gets cleared whenever you do a database repair. (Perhaps that could be mentioned somewhere in the manual too... )