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: CONTRIBUTING.md
+73Lines changed: 73 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,77 @@ Similarly, if running on the command line pass `PROXY_MANUAL_START=true`.
139
139
To log tracing information to the terminal, you can add the `RUST_LOG` environment variable as shown above using the [same format supported by `env_logger`](https://docs.rs/env_logger/latest/env_logger/#enabling-logging).
140
140
The targets are the crate names if you want to trace more or less for specific targets e.g., `RUST_LOG=info,azure_core=trace` to trace information messages by default but detailed traces for the `azure_core` crate.
141
141
142
+
#### Debugging in Windows
143
+
144
+
Using the recommended [CodeLLDB] Visual Studio Code extension on Windows will stop at breakpoints but may not pretty print variables e.g.,
145
+
for a `String` or `str` slice you may only see the length of UTF-8 bytes. See <https://github.com/vadimcn/codelldb/wiki/Windows> for suggestions.
146
+
147
+
Alternatively, you can install the [C/C++] extension and update configuration as described below.
148
+
`String`, `str` slices, enums and more should pretty print as expected, but some types e.g., `PathBuf` may not; however,
149
+
you can click the memory button next to a variable to see the contents in memory.
150
+
151
+
##### Debugging from within the Editor
152
+
153
+
To support debugging tests from within the editor, you can change your Visual Studio Code user settings as shown below:
And update `.vscode/tasks.json` to add the `preLaunchTask` if desired:
191
+
192
+
```json
193
+
{
194
+
"tasks": [
195
+
{
196
+
"label": "Build test_proxy",
197
+
"command": "cargo",
198
+
"args": [
199
+
"build",
200
+
"--package",
201
+
"azure_core_test",
202
+
"--example",
203
+
"test_proxy"
204
+
],
205
+
"problemMatcher": [
206
+
"$rustc"
207
+
]
208
+
}
209
+
]
210
+
}
211
+
```
212
+
142
213
## Code Review Process
143
214
144
215
Before a pull request will be considered by the Azure SDK team, the following requirements must be met:
@@ -213,6 +284,8 @@ Samples may take the following categories of dependencies:
213
284
214
285
In general, we prefer taking dependencies on licensed components in the order of the listed categories. In cases where the category may not be well known, we'll document the category so that readers understand the choice that they're making by using that dependency.
0 commit comments