Latest post of the previous page:1.1.20 (and FAR.NET 3.3.20)
VIEW CALL STACK ON ERRORS ($ErrorActionPreference = 'Inquire')
For the sake of better troubleshooting of your scripts and just for experience I
set $ErrorActionPreference = 'Inquire' in demo Profile-.ps1 (just in case if you
use it or you can set it in your profile).
Advantages: you have a choice what to do on an error: continue; silently
continue; break; suspend and invoke intermediate commands in Editor console; use
NEW FEATURE - view call stack on error (<Esc> in error message dialog).
Disadvantages: can be annoying if you simply compose a new command; not all
scripts allow interaction, e.g. inside DB transactions (but actually in this
case you can explicitly set $ErrorActionPreference = 'Stop\Continue' in a
script or any other scope).
Anyway, it is up to you what $ErrorActionPreference to use, but the new feature
'view call stack' useful for troubleshooting is available only in error dialog,
i.e. when $ErrorActionPreference = 'Inquire'.
- Minor improvements in TabExpansion-.ps1
- Fixed example 'Tables' in Test-DataPanel-.ps1
- Editor console: <= and => are used as command output markers.
- Plugin menu command "Run selected code" being invoked from the command line
with no selection (i.e. full text) clears the command line on success and keeps
the text on errors so that you can correct the text immediately.