generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Debug | ||
|
||
The recommended way to debug a packer plugin is adding prints and running with logs enabled. | ||
As written in [packer debug documentation](https://developer.hashicorp.com/packer/docs/debugging), you can use `PACKER_LOG=1` to enable verbose logging. | ||
|
||
## Testing local build | ||
|
||
To test a local build, you need to have the plugin in the same folder where you will run packer: | ||
|
||
|
||
``` | ||
> ls | ||
packer-plugin-scaleway build_scaleway.pkr.hcl | ||
> PACKER_LOG=DEBUG SCW_DEBUG=1 packer build build_scaleway.pkr.hcl | ||
... | ||
``` |