Skip to content

Commit

Permalink
chore: add env field and how to obtain (#337)
Browse files Browse the repository at this point in the history
Signed-off-by: AhmedLotfy02 <ahmadlotfygamersfield@gmail.com>
Co-authored-by: Neha Gupta <gneha21@yahoo.in>
  • Loading branch information
AhmedLotfy02 and nehagup authored Feb 21, 2024
1 parent 36eebe5 commit 91a9b7f
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions versioned_docs/version-2.0.0/keploy-explained/debugger-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ Navigate to `launch.json` to begin crafting JSON objects.
"asRoot": true,
"console": "integratedTerminal",
"program": "main.go",
"args": ["record", "-c", "<path_to_executable>"]
"args": ["record", "-c", "<path_to_executable>"],
"env": {
"PATH": "${env:PATH}"
}
},
{
"name": "Test",
Expand All @@ -44,12 +47,39 @@ Navigate to `launch.json` to begin crafting JSON objects.
"asRoot": true,
"console": "integratedTerminal",
"program": "main.go",
"args": ["test", "-c", "<path_to_executable>"]
"args": ["test", "-c", "<path_to_executable>"],
"env": {
"PATH": "${env:PATH}"
}
}
]
}
```
## Retrieving the PATH Environment Variable
### macOS/ Linux
<ul><li>

Terminal:

```shell
echo $PATH
```
</li>

</ul>


### Windows
<ul><li>

Command Prompt (CMD):
```shell
echo %PATH%
```

</li>

</ul>
Let's take a closer look at some important key-value pairs in our JSON file:

- The `"name"` parameter can be anything, but for convenience, consider using the keploy command name (e.g., `Record` and `Test`).
Expand Down

0 comments on commit 91a9b7f

Please sign in to comment.