Debug-Error
1.0.0
VS Code example. Let the PowerShell extension start and open its terminal.
For example, open a script. In the terminal invoke Debug-Error.ps1. Then
invoke a script. As a result, on errors VS Code breaks into the debugger
and opens the culprit script, not necessarily the invoked, in the editor.
The line with a terminating error is highlighted.
The script works in any
For example, open a script. In the terminal invoke Debug-Error.ps1. Then
invoke a script. As a result, on errors VS Code breaks into the debugger
and opens the culprit script, not necessarily the invoked, in the editor.
The line with a terminating error is highlighted.
The script works in any
VS Code example. Let the PowerShell extension start and open its terminal.
For example, open a script. In the terminal invoke Debug-Error.ps1. Then
invoke a script. As a result, on errors VS Code breaks into the debugger
and opens the culprit script, not necessarily the invoked, in the editor.
The line with a terminating error is highlighted.
The script works in any host with a debugger, e.g. in the console it breaks
into the debugger, too. But troubleshooting is not that easy as in VS Code.
The command exploits updates of the variable StackTrace on terminating
errors. Setting this variable breakpoint enables debugging on failures.
Without parameters this command enables debugging on failures globally.
Use the switch Off in order to stop debugging on errors.
Show more
For example, open a script. In the terminal invoke Debug-Error.ps1. Then
invoke a script. As a result, on errors VS Code breaks into the debugger
and opens the culprit script, not necessarily the invoked, in the editor.
The line with a terminating error is highlighted.
The script works in any host with a debugger, e.g. in the console it breaks
into the debugger, too. But troubleshooting is not that easy as in VS Code.
The command exploits updates of the variable StackTrace on terminating
errors. Setting this variable breakpoint enables debugging on failures.
Without parameters this command enables debugging on failures globally.
Use the switch Off in order to stop debugging on errors.
Installation Options
Owners
Copyright
(c) Roman Kuzmin
Package Details
FileList
- Debug-Error.nuspec
- Debug-Error.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 678 | 5/20/2017 |
1.0.0 (current version) | 77 | 5/19/2017 |