Hi, I'm doing immediate syntax check for VBScript code sentence. How can i get VBScript compiler error information, such as "expected expression"? Thank you! Alan
alan net
Posts
-
vbscript compiler error -
customize script debuggerHi all, I try to design my own script debugger in the basis of ms windows script debug interfaces. But i met some problems. i read one article from MSDN online -- Active Scripting APIs: Add Powerful Custom Debugging to Your Script-Hosting App. First, the author said one rule is imperative to reach, that is to execute your script code one time, then you can set the breakpoints correctly. i debugged the sample attached and that's right. otherwise, the IDebugCodeContext pointer is empty and the breakpoint can't be set enabled. this seems so strange if there are some UI elements or operations in your code. Second, How can i debug one script segment of global code? I changed that sample a little so that global code can directly run not by invoking some named function. I found any breakpoint set in some of global code was invalid. Thanks a lot alan
-
customize script debuggerHi all, I try to design my own script debugger in the basis of ms windows script debug interfaces. But i met some problems. i read one article from MSDN online -- Active Scripting APIs: Add Powerful Custom Debugging to Your Script-Hosting App. First, the author said one rule is imperative to reach, that is to execute your script code one time, then you can set the breakpoints correctly. i debugged the sample attached and that's right. otherwise, the IDebugCodeContext pointer is empty and the breakpoint can't be set enabled. this seems so strange if there are some UI elements or operations in your code. Second, How can i debug one script segment of global code? I changed that sample a little so that global code can directly run not by invoking some named function. I found any breakpoint set in some of global code was invalid. Thanks a lot alan