3
3
* NOTE: For a more comfortable reading experience, use the key combination ` Ctrl+Shift+V ` *
4
4
5
5
This folder contains a few basic PowerShell script files that you can use
6
- to experiment with the new PowerShell editing and debugging capabilities.
6
+ to experiment with the new PowerShell editing and debugging capabilities.
7
7
Here are some ideas for what you can try with these scripts:
8
8
9
9
## Language Features
10
10
11
- - ** Integrated syntax checks** from the PowerShell engine and ** integrated
11
+ - ** Integrated syntax checks** from the PowerShell engine and ** integrated
12
12
rule-based analysis** using PowerShell Script Analyzer
13
13
- Try opening ` DebugTest.ps1 ` and ` StopTest.ps1 ` by double-clicking on their
14
14
file names. You will see red and green squiggles for rule-based checks.
15
15
You can introduce a syntax error somewhere to see the red squiggle for
16
- that as well. To see a list of all errors and warnings, try pressing
16
+ that as well. To see a list of all errors and warnings, try pressing
17
17
` Ctrl+Shift+M ` .
18
- - ** Go to definition ` (F12) ` ** and ** Peek definition ` (Alt+F12) ` **
18
+ - ** Go to definition ` (F12) ` ** and ** Peek definition ` (Alt+F12) ` **
19
19
for cmdlet and variable names
20
20
- Try this on the ` Stop-Process2 ` cmdlet in ` StopTest.ps1 `
21
21
- ** Find all references ` (Shift+F12) ` ** for cmdlet and variable names
@@ -28,7 +28,7 @@ Here are some ideas for what you can try with these scripts:
28
28
You can run scripts under the debugger by going to the debug workspace
29
29
` (Ctrl+Shift+D) ` and clicking the ` Start ` button or just by pressing ` F5 ` .
30
30
By default the debugger will start the ` DebugTest.ps1 ` script. You can
31
- set breakpoints, pause execution, look at the call stack, inspect variables,
31
+ set breakpoints, pause execution, look at the call stack, inspect variables,
32
32
and set specific variables to be watched.
33
33
34
34
Try these steps:
@@ -38,7 +38,7 @@ Try these steps:
38
38
3 . Press the blue ** Pause** button at the top of the screen. The debugger
39
39
will stop executing wherever it is at the moment and will bring you to the
40
40
file and line where it stopped.
41
- 4 . Check out the ** Variables** pane at the top left of the window. Scroll
41
+ 4 . Check out the ** Variables** pane at the top left of the window. Scroll
42
42
through the list and inspect some of the variables there.
43
43
5 . Find the variable ` i ` in the Variables list, right click it and select
44
44
** Add to Watch** . The variable should appear in the ** Watch** pane now.
@@ -57,12 +57,12 @@ when `F5` is pressed.
57
57
58
58
## Feedback
59
59
60
- We would love to hear your feedback! Please post feature requests or issue
60
+ We would love to hear your feedback! Please post feature requests or issue
61
61
reports on our [ GitHub issues page] ( http://github.com/PowerShell/vscode-powershell ) .
62
62
63
- If you are experiencing any errors or crashes, please include the
63
+ If you are experiencing any errors or crashes, please include the
64
64
following two log files:
65
65
66
- - The language service log file: ` $env:USERPROFILE \.vscode\extensions\ms-vscode.PowerShell\bin\EditorServices.log `
67
- - The debugging service log file: ` $env:USERPROFILE \.vscode\extensions\ms-vscode.PowerShell\bin\DebugService.log `
68
- - NOTE: This file may not exist if you haven't use the debugger yet.
66
+ - The language service log file: ` $Home \.vscode\extensions\ms-vscode.PowerShell-<version> \bin\EditorServices.log `
67
+ - The debugging service log file: ` $Home \.vscode\extensions\ms-vscode.PowerShell-<version> \bin\DebugService.log `
68
+ - NOTE: This file may not exist if you haven't use the debugger yet. Replace ` <version> ` in the paths above with the version number of the extension.
0 commit comments