|
| 1 | +--- |
| 2 | +title: Azure Data Studio Troubleshooting |
| 3 | +description: 'Learn how to get logs and troubleshoot Azure Data Studio, which is helpful in reporting bug reports.' |
| 4 | +ms.prod: azure-data-studio |
| 5 | +ms.technology: azure-data-studio |
| 6 | +ms.topic: conceptual |
| 7 | +author: dzsquared |
| 8 | +ms.author: drskwier |
| 9 | +ms.reviewer: hanqin, maghan |
| 10 | +ms.custom: seodec18 |
| 11 | +ms.date: 11/24/2020 |
| 12 | +--- |
| 13 | + |
| 14 | +# Azure Data Studio Troubleshooting |
| 15 | +Azure Data Studio tracks issues and feature requests using on a [GitHub repository issue tracker](https://github.com/Microsoft/azuredatastudio/issues) for the `azuredatastudio` repository. |
| 16 | + |
| 17 | +## If you've experienced any issue |
| 18 | + |
| 19 | +Report issues to [GitHub Issue Tracker](https://github.com/Microsoft/azuredatastudio/issues) and let us know any details that will help reproduce the error. Include any [log information](#how-to-set-the-logging-level) from the log file. |
| 20 | + |
| 21 | +## Writing good bug reports and feature requests |
| 22 | + |
| 23 | +File a single issue per problem and feature request. |
| 24 | + |
| 25 | +* Don't enumerate multiple bugs or feature requests in the same issue. |
| 26 | +* Don't add your issue as a comment to an existing issue unless it's for the identical input. Many issues look similar, but have different causes. |
| 27 | + |
| 28 | +The more information you can provide, the more likely someone will be successful reproducing the issue and finding a fix. |
| 29 | + |
| 30 | +Include the following information with each issue: |
| 31 | + |
| 32 | +* Version of Azure Data Studio |
| 33 | +* Reproducible steps (1... 2... 3...) and what you expected versus what you actually saw. |
| 34 | +* Images, animations, or a link to a video. Images and animations illustrate repro-steps but don't replace them. |
| 35 | +* A code snippet that demonstrates the issue or a link to a code repository we can easily pull down onto our machine to recreate the issue. |
| 36 | + |
| 37 | +> [!NOTE] |
| 38 | +> Because we need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient. |
| 39 | +
|
| 40 | +* Errors in the Dev Tools Console (Help | Toggle Developer Tools) |
| 41 | + |
| 42 | +Please remember to do the following: |
| 43 | + |
| 44 | +* Search the issue repository to see if there exists a duplicate. |
| 45 | +* Simplify your code around the issue so we can better isolate the problem. |
| 46 | + |
| 47 | +Don't feel bad if we can't reproduce the issue and ask for more information! |
| 48 | + |
| 49 | +## How to set the logging level |
| 50 | + |
| 51 | +### Azure Data Studio |
| 52 | +Run the `Developer: Set Log Level...` command to select the log level for the current session. This value is NOT persisted over multiple sessions - so if you restart Azure Data Studio it will revert back to the default `Info` level. |
| 53 | + |
| 54 | +If you want to enable debug logging for startup then set the log level to `Debug` and run the `Developer: Reload Window` command |
| 55 | + |
| 56 | +### MSSQL (Built-In Extension) |
| 57 | + |
| 58 | +If the `Mssql: Log Debug Info` user setting is set to true, then debug log info will be sent to the `MSSQL` output channel. |
| 59 | + |
| 60 | +The `Mssql: Tracing Level` user setting is used to control the verbosity of the logging. |
| 61 | + |
| 62 | +## Debug log location |
| 63 | +From Azure Data Studio, run the `Developer: Open Logs Folder` command to open the path to the logs. There's many different types of log files that write there, a few of the commonly used ones are: |
| 64 | + |
| 65 | +1. `renderer#.log` (for example, renderer1.log) - this file is the log file for the main process. |
| 66 | +1. `telemetry.log` - When the log level is set to `Trace` this file will contain the telemetry events sent by Azure Data Studio |
| 67 | +1. `exthost#/exthost.log` - Log file for the extension host process (this is only the process itself, not the extensions running inside it) |
| 68 | +1. `exthost#/Microsoft.mssql` - Logs for the mssql extension, which contains much of the core logic for MSSQL-related features |
| 69 | + * sqltools.log is the log for SQL Tools Service |
| 70 | +1. `exthost#/output_logging_#######` - these folders contain the messages displayed in the `Output` panel in Azure Data Studio. Each file is named `#-<Channel Name>` so for example the `Notebooks` output channel may output to a file named `3-Notebooks.log`. |
| 71 | + |
| 72 | +If you are asked to provide logs, zip up the entire folder to ensure that the correct logs are included. |
| 73 | + |
| 74 | +## Next Steps |
| 75 | +- [Report an issue](https://github.com/Microsoft/azuredatastudio/issues) |
| 76 | +- [What is Azure Data Studio](what-is-azure-data-studio.md) |
0 commit comments