Skip to content

Instantly share code, notes, and snippets.

@enricosada
enricosada / rubyspec.yaml
Created August 15, 2011 10:58
Sync ironruby's rubyspec
command_line : wip (enricosada)
core:
array
  b*
  hash : pullrequest (enricosada)
range
t* : pullrequest (enricosada)
language:
*
library:
@kunjee17
kunjee17 / sdk-stable.cmd
Last active June 28, 2017 09:29
reset dot net core sdk while trying different version of it.
@echo off
echo was:
dotnet --version
REM 1.0.1
REM pushd C:\dotnetcli\dotnet-1.1.1-sdk-win-x64
REM 1.0.4
pushd C:\dotnetcli\dotnet-dev-win-x64.1.0.4
@ninjarobot
ninjarobot / strace-netcore.md
Last active May 24, 2022 19:22
Trace .NET Core Applications on Linux with `strace`

Trace .NET Core Applications on Linux with strace

Troubleshooting a running application can be difficult, usually it starts around checking log output and then following through the likely code paths to get an idea of where a failure may occur. In a development environment, you might attach a debugger a step through source, but troubleshooting isn't always that convenient. There are several helpful tools that can assist, but one that gives the most comprehensive view of a running application is strace. With strace you are able to see all of the system calls an application makes to get a detailed understanding of what is going on "under the hood" in order to troubleshoot an issue.

Take a simple "hello world" F# application, the kind you get from dotnet new console -lang F# -n strace-sample". Build it with dotnet build and then launch it with strace to get a trace of all the system calls in a file called trace.log(adjusting for your build output path if on a different framework vers