This repository contains the source code for various .NET Core runtime diagnostic tools and documents.
Перейти к файлу
Mike McLaughlin c33369b982
Fix the Windows private runtime build testing problems (#807)
Fix the Windows private runtime build testing problems

Enable the "setclrpath" for Windows.

Change the SOS test harness and scripts to set the runtime path for triage dumps.

Add -privatebuildpath option to build scripts that installs the test runtimes, copies
the private runtime build and on Windows regedit's the necessary keys to create dumps.

Add private build registry cleanup.
2020-02-08 12:03:08 -08:00
documentation Fix the Windows private runtime build testing problems (#807) 2020-02-08 12:03:08 -08:00
eng Fix the Windows private runtime build testing problems (#807) 2020-02-08 12:03:08 -08:00
src Fix the Windows private runtime build testing problems (#807) 2020-02-08 12:03:08 -08:00
.gitattributes Add the managed SOS code. 2018-04-26 15:47:59 -07:00
.gitignore add eventpipe test harness (#618) 2019-11-19 15:10:29 -08:00
.vsts-dotnet-ci.yml Revert "Update the docker images used to have a newer version of CMake. (#597)" (#598) 2019-11-06 18:24:12 -08:00
.vsts-dotnet.yml Build Windows arm64 version of SOS. (#754) 2020-01-16 16:02:10 -08:00
Build.cmd Use darc runtime subscription versions for testing (#682) 2019-12-13 14:47:52 -08:00
CMakeLists.txt Use darc runtime subscription versions for testing (#682) 2019-12-13 14:47:52 -08:00
Directory.Build.props Verbose logging for symbol publish, etc. (#495) 2019-09-21 12:32:24 -07:00
LICENSE.TXT Initialize repo 2018-03-21 18:05:51 -07:00
NuGet.config Use darc runtime subscription versions for testing (#682) 2019-12-13 14:47:52 -08:00
README.md Fix the Windows private runtime build testing problems (#807) 2020-02-08 12:03:08 -08:00
Restore.cmd Use darc runtime subscription versions for testing (#682) 2019-12-13 14:47:52 -08:00
THIRD-PARTY-NOTICES.TXT Initial commit of dotnet-gcdump 2019-10-25 14:55:32 -07:00
Test.cmd Use darc runtime subscription versions for testing (#682) 2019-12-13 14:47:52 -08:00
build.sh Use darc runtime subscription versions for testing (#682) 2019-12-13 14:47:52 -08:00
compileoptions.cmake Add license headers 2018-05-09 17:10:11 -07:00
crossgen.cmake Add the PAL and SOS itself. 2018-05-25 16:05:35 -07:00
debuggees.sln Fix line number issues in SOS (#734) 2020-01-14 00:22:12 -08:00
diagnostics.sln Remove legacy RuntimeClient library (#722) 2019-12-26 12:15:43 -08:00
functions.cmake Dependent builds, publishing and packaging (#65) 2018-08-24 16:56:12 -07:00
global.json Update dependencies from https://github.com/dotnet/arcade build 20200201.2 (#796) 2020-02-03 13:36:40 +00:00
restore.sh Use darc runtime subscription versions for testing (#682) 2019-12-13 14:47:52 -08:00
test.sh Use darc runtime subscription versions for testing (#682) 2019-12-13 14:47:52 -08:00

README.md

.NET Core Diagnostics Repo

This repository contains the source code for various .NET Core runtime diagnostic tools. It currently contains SOS, the managed portion of SOS, the lldb SOS plugin and various global diagnostic tools. The goals of this repo is to build SOS and the lldb SOS plugin for the portable (glibc based) Linux platform (Centos 7) and the platforms not supported by the portable (musl based) build (Centos 6, Alpine, and macOS) and to test across various indexes in a very large matrix: OSs/distros (Centos 6/7, Ubuntu, Alpine, Fedora, Debian, RHEL 7.2), architectures (x64, x86, arm, arm64), lldb versions (3.9 to 9.0) and .NET Core versions (1.1, 2.0.x, 2.1).

Another goal to make it easier to obtain a version of lldb (currently 3.9) with scripts and documentation for platforms/distros like Centos, Alpine, Fedora, etc. that by default provide really old versions.

This repo will also allow out of band development of new SOS and lldb plugin features like symbol server support for the .NET Core runtime and solve the source build problem having SOS.NETCore (managed portion of SOS) in the coreclr repo.

See the GitHub Release tab for notes on SOS and diagnostic tools releases.


Building the Repository

The build depends on Git, CMake, Python and of course a C++ compiler. Once these prerequisites are installed the build is simply a matter of invoking the 'build' script (build.cmd or build.sh) at the base of the repository.

The details of installing the components differ depending on the operating system. See the following pages based on your OS. There is no cross-building across OS (only for ARM, which is built on x64). You have to be on the particular platform to build that platform.

To install the platform's prerequisites and build:

SOS and Other Diagnostic Tools

  • SOS - About the SOS debugger extension.
  • dotnet-dump - Dump collection and analysis utility.
  • dotnet-trace - Enable the collection of events for a running .NET Core Application to a local trace file.
  • dotnet-counters - Monitor performance counters of a .NET Core application in real time.

Build Status

Build Status

License

The diagnostics repository is licensed under the MIT license. This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.