Re: Error capturing
| Newsgroups | gmane.comp.windows.power-pro |
|---|---|
| Message-ID | <[email protected]> |
Just to be clear: scriptline and scriptname refer to current script. So if you use them in error hooking script/command list, they will refer to that script/command list. Not particularly useful for your purposes, I suspect. You probably need to use the callstack. I did a brief check and it appears that line numbers are off by 1 level in the call stack. They are the line number of the calling script. That is, if script child is called from script parent at line 12 of script parent, then callstack will have child12. Scriptline gives the current line in script child. Probably not something I am going to change.