简体   繁体   English

当dotnet工具无法启动(无法初始化)时,我设置了哪些环境变量来获取更详细的信息?

[英]When dotnet tool won't start up (failed to initialize) what environment variable do I set to get more verbose information?

I know I've read on a blog somewhere or other that you can set some environment variable to give you more information when you have a crash at startup invoking the dotnet tool (asp.net core dotnet command line tool). 我知道我已经在某处或其他地方的博客上阅读过你可以设置一些环境变量,以便在启动时调用dotnet工具(asp.net core dotnet命令行工具)时发生崩溃时提供更多信息。

I'm using dotnet 1.0.0 rtm on an OpenSuSE linux system and it's crashing like this: 我在OpenSuSE linux系统上使用dotnet 1.0.0 rtm,它崩溃了:

> dotnet version
Failed to initialize CoreCLR, HRESULT: 0x80131500

To get more information about why, is there some environment variable I can set to tell me why it won't start up? 为了获得有关原因的更多信息,是否有一些环境变量我可以设置告诉我为什么它不会启动?

I do know you can get some unix system info with dotnet --info but that also crashes in my case with the same failed to initialize error. 我知道你可以通过dotnet --info得到一些unix系统信息,但是在我的情况下崩溃同样也无法初始化错误。

I know I can do an strace (strace dotnet version) but I think there's something BUILT IN 我知道我可以做一个strace(strace dotnet版本),但我认为有一些内置

您正在寻找的环境变量是COREHOST_TRACE=1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当 IT 不允许您在 Windows 工作站上安装任何东西时,如何为 React 设置开发环境 - How to set up a development environment for React when IT won't allow you to install anything on your Windows workstation 我需要做些什么才能启动和运行JS3环境(或者至少是ouchdb)? - What do I need to do to get a JS3 environment (or at least couchdb) up and running? 如何在 Ubuntu 上设置 GOPATH 环境变量? 我必须编辑什么文件? - How do I SET the GOPATH environment variable on Ubuntu? What file must I edit? 如何在 Ubuntu 中设置 delphi 开发环境? - How do I set up the delphi development environment in Ubuntu? 如何在 Linux 上为 mingw 和 QT 设置构建环境? - How do I set up a build environment for mingw and QT on Linux? 如何在无法启动的Docker容器中创建目录? - How do I create a directory in a Docker container that won't start? cgconfig服务无法启动 - cgconfig service won't start up shell中的环境变量更改但不会导出 - Environment variable change in shell but won't export Rails 服务器无法启动 - Rails server won't start up Linux / Python:如何在Python文件中隐藏敏感信息,以使环境中的开发人员无法访问它? - Linux/Python: How can I hide sensitive information in a Python file, so that developers on the environment won't be able to access it?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM