Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ export class DotnetRuntimeExtensionResolver implements IHostExecutableResolver {
env.DOTNET_DbgMiniDumpType = '4';
// Collect crashreport.json with additional thread and stack frame information.
env.DOTNET_EnableCrashReport = '1';
// Collect dumps when the process is sent a SigTerm as well
env.DOTNET_EnableDumpOnSigTerm = '1';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Slightly worried we might get a ton of useless dumps - like for example if vscode is shutting down and kills the process. Can we check if that happens?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To some extent it might be reasonable in that the user has already set the crashdump path. But it would be pretty bad if they leave it on and fill up their machine with useless dumps that aren't real crashes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we have the user set this on an as needed basis using the new env args setting?

// The dump file name format is <executable>.<pid>.dmp
env.DOTNET_DbgMiniDumpName = path.join(languageServerOptions.crashDumpPath, '%e.%p.dmp');
}
Expand Down
Loading