# std.Build: improve debugging of misconfigured steps · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/02381c037221937e941e03c5e7439383dde8a2a1)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 02381c037221937e941e03c5e7439383dde8a2a1

Requested commit: 02381c037221937e941e03c5e7439383dde8a2a1

Commit: 02381c037221937e941e03c5e7439383dde8a2a1

Tree: d51532b9fa4773c498723e581e069b7ddb086e81

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Build: improve debugging of misconfigured steps

 * Step.init() now takes an options struct
 * Step.init() now captures a small stack trace and stores it in the
   Step so that it can be accessed when printing user-friendly debugging
   information, including the lines of code that created the step in
   question.

```

## Parents

- [9580fbcf3596a39ba4c7d7af2f3a1df0e0abb746](https://git.cafe/gitcafe/zig/commit/9580fbcf3596a39ba4c7d7af2f3a1df0e0abb746?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/02381c037221937e941e03c5e7439383dde8a2a1?format=markdown)
