Skip to content

Commit fbc6b19

Browse files
committed
(GH-100) Add docs on the debug feature
This commit adds documentation about the new experimental feature in the extension readme.
1 parent ae5e6ac commit fbc6b19

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

client/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Create or open any Puppet manifest with the extension `.pp` or `.epp` and the ex
3737
- Import from `puppet resource` directly into manifests
3838
- Node graph preview
3939
- Puppet Development Kit integration
40+
- (Experimental) Local debugging of Puppet manifests
4041

4142
## Feature information
4243

@@ -99,6 +100,32 @@ To use any of the above commands, open the command palette and start typing a co
99100

100101
`PDK New Module` is available even if the extension isn't loaded, the rest of the commands are only available when the extension is loaded.
101102

103+
### Locally debugging Puppet manifests
104+
105+
**Note - This is an experimental feature**
106+
107+
The Puppet extension is able to debug the compilation of a Puppet manifest, much like a Go, PowerShell, C# etc. The debugger supports:
108+
109+
* Line breakpoints but not conditions on those breakpoints
110+
* Function breakpoints
111+
* Exception breakpoints
112+
* Call stack
113+
* Variables, but only at the top stack frame
114+
* Limited interactive debug console. For example, you can assign a variable a value, but just as in regular Puppet you can't change its value later
115+
* Step In, Out, Over
116+
117+
You may be presented with a Launch Configuration on first use. Please see the [VSCode Debugging link](https://code.visualstudio.com/docs/editor/debugging) for instructions on how to set this up.
118+
119+
Settings:
120+
121+
`manifest` - The manifest to apply. By default this is the currently open file in the editor
122+
123+
`noop` - Whether the `puppet apply` sets No Operation (Noop) mode. By default, this is set to false. This means when runing the debugger it can make changes to your system
124+
125+
`args` - Additional arguements to pass to `puppet apply`, for example `['--debug']` will output debug information
126+
127+
![Puppet Debug Adapter](https://raw.githubusercontent.com/jpogran/puppet-vscode/master/client/docs/assets/puppet_debug.gif)
128+
102129
## Installing the Extension
103130

104131
You can install the official release of the Puppet extension by following the steps
538 KB
Loading

0 commit comments

Comments
 (0)