Skip to content

Commit 2c93048

Browse files
committed
Add instructions for collecting Razor logs
1 parent 24db10c commit 2c93048

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

SUPPORT.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The template has a section to include the `C#` output window logs. These logs a
2525
3. In the `C#` output window, select all (e.g. `cntrl+a`) and copy paste into the issue template under the 'C# Log' section. If you need to redact file paths and other information, please do so at this time.
2626
4. Once the logs are collected, reset the window log level to `Info`
2727

28-
If the issue only reproduces on extension startup, you can set `Trace` as the default (see screenshot above), reload the window, and trace logs will be captured on startup.
28+
If the issue only reproduces on extension startup, you can set `Trace` as the default (see screenshot above), restart VSCode, and trace logs will be captured on startup.
2929

3030
##### C# LSP Trace Logs
3131
Sometimes we need to know exactly what requests were sent to the Roslyn language server. To capture these logs:
@@ -39,6 +39,15 @@ Sometimes we need to know exactly what requests were sent to the Roslyn language
3939
1. When launching VSCode from the CLI, pass the `--log ms-dotnettools.csharp:trace` parameter.
4040
2. Invoke the `Developer: Set Log Level` command from the VSCode command palette, find the `C#` entry and set the level.
4141

42+
##### Collecting Razor logs
43+
For issues with Razor, the Razor Log output window can contain useful information.
44+
45+
1. Find the `Razor Log` output window (`View` -> `Output`) and set the log level to `Trace`
46+
![razor log output window showing trace option](./docs/razor_logs.png)
47+
2. Reproduce the issue
48+
3. Select all contents of the window (e.g. `cntrl+a`) and paste into the GitHub issue when requested.
49+
4. Once the logs are collected, reset the window log level to `Info`
50+
4251
#### Project loading problems
4352

4453
A common cause of missing language features is a failure to load the project(s) or solution. There can be a number of reasons why this happens, and some additional information is generally necessary to figure out what is going wrong.

docs/razor_logs.png

33.9 KB
Loading

0 commit comments

Comments
 (0)