Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always log LSP server processId and increase attach timeout #72531

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

dibarbet
Copy link
Member

The processId is useful outside of debugging scenarios (for example when requesting more process information in bug reports). Adjust logging to always report it.

Additionally, increases the timeout waiting for a debugger on non-windows platforms - it can take more than a minute at times to attach.

@dibarbet dibarbet requested a review from a team as a code owner March 13, 2024 19:29
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 13, 2024
@@ -66,8 +67,7 @@ static async Task RunAsync(ServerConfiguration serverConfiguration, Cancellation
}
else
{
var timeout = TimeSpan.FromMinutes(1);
logger.LogCritical($"Server started with process ID {Environment.ProcessId}");
var timeout = TimeSpan.FromMinutes(2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to attach debugger on a non-win platform?🤔 Use C# extenstions to debug itself?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup - I do it often on my mac. There's an attach to process command to attach to any dotnet core process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants