You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contribute.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,25 @@ cd ./src
30
30
./dev.(sh/cmd) test# run unit tests before git commit/push
31
31
```
32
32
33
+
## Debugging
34
+
35
+
The agent can be run in debug mode by providing the parameter `--debug` to the `run` command.
36
+
This will make the agent recognize the following environment variables:
37
+
38
+
-`VSTSAGENT_DEBUG_TASK` - for remote debugging node-based pipeline tasks
39
+
40
+
Note that all of these variables need to be defined on the node that is used to run the agent.
41
+
Also, do not run production agents with this mode as it can cause pipelines to appear stuck.
42
+
43
+
### `VSTSAGENT_DEBUG_TASK` environment variable
44
+
45
+
When enabled, the agent will start the Node process with specific parameters. These parameters cause the process to wait for the debugger to attach before continuing with the execution of the pipeline task script. The value must be set to either:
46
+
- Task `id`, which is an unique GUID identifier to be found in `task.json` definition of the task
47
+
- Task `name` and major `version`, e.g. AzureCLIV2
48
+
49
+
Only one task can be debugged at one time and all other tasks in the same pipeline will proceed as usual.
50
+
If you wish to stop debugging this task either restart that agent without `--debug` option, or unset the variables from above.
51
+
33
52
## Editors
34
53
35
54
[Using Visual Studio 2017](https://www.visualstudio.com/vs/)
Copy file name to clipboardExpand all lines: src/Misc/layoutbin/en-US/strings.json
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@
27
27
"AgentWithSameNameAlreadyExistInPool": "Pool {0} already contains an agent with name {1}.",
28
28
"AllowContainerUserRunDocker": "Allow user '{0}' run any docker command without SUDO.",
29
29
"AlreadyConfiguredError": "Cannot configure the agent because it is already configured. To reconfigure the agent, run 'config.cmd remove' or './config.sh remove' first.",
30
+
"ApkAddShadowFailed": "The user ID is outside the range of the 'adduser' command. The alternative command 'useradd' cannot be used because the 'shadow' package is not preinstalled and the attempt to install this package failed. Check network availability or use a docker image with the 'shadow' package preinstalled.",
30
31
"ArgumentNeeded": "'{0}' has to be specified.",
31
32
"ArtifactCustomPropertiesNotJson": "Artifact custom properties is not valid JSON: '{0}'",
32
33
"ArtifactCustomPropertyInvalid": "Artifact custom properties must be prefixed with 'user-'. Invalid property: '{0}'",
0 commit comments