This works for method visits as well, e.g. here is a method that gets called two times. You can see what called it that time, and what return value was produced for that specific call.
5
Recently I was thinking about "time-travel" alternatives to traditional debugging for SharpLab's continuous Run.
Here's one outcome. SharpLab used to dump all loop values at once, but that wasn't too useful. Now you can select a specific iteration and see values and flow within.
Replying to @davidfowl
Yep hoping it evolves, last proposal I saw were sizes only:
docs.google.com/document/d/1…

ALT Screenshot from https://docs.google.com/document/d/1ckQbWHxvh0IKHVf5-0ztOgqwR5XakBoX6xuk1MKbb7Y/edit#heading=h.jhslnvomzqt1. Text: • Chunk timeline • Upload/download size/time Screenshot of DevTools panel with WebTransport messages only represented by Up/Down, Length and Time, no actual body of the message.
Replying to @Lucas_Trz @marcgravell
Yes of course. The slide is a bit tongue-in-cheek (full below). But also there a are complexity costs, developer time costs, maintenance costs. Often developers are enthusiastic for code improvement way before they collect enough experience to carefully evaluate those.
1
3
Replying to @marcgravell
Me, a few days ago, doing a random knowledge sharing on zero-allocation programming in a reasonable company that makes web applications:
2
4
Replying to @phillijw
Do you mean like this (see gif)?
You can click the error if it has a bulb icon, or press Ctrl+. to open that menu.
1
1
I was curious if you can achieve something like npm scripts (arbitrary commands) with dotnet run -- and you can!
Only thing needed is this small csproj in top solution folder:
gist.github.com/ashmind/dd2d…
(This is a proof-of-concept, not fully cross-platform, not polished at all)
1
8
Tired of using SharpLab to decompile C# to IL?
No problem!
Thanks to great work by @konradkokosa and @vivekmapara you can now decompile IL to to C# instead.
sharplab.io/#v2:DYLglsA+ACBs…
I was interested in trying out source generators, so I built this prototype source-generator-based mocking framework:
github.com/ashmind/SourceMoc…
I like how symmetrical Setup/Calls end up being. Note that all parameters are optional, thanks to source generators.








![Code block (C#): [Fact] public void MultipleArguments() { var mock = new CalculatorMock(); mock.Setup.Sum(1, 2).Returns(3); Assert.Equal(3, mock.Sum(1, 2)); }](https://pbs.twimg.com/media/E0cvnk1VoAMwrgB.png?name=small&format=webp)
![Code block (C#): [Fact] public void Calls() { var mock = new CalculatorMock(); mock.Sum(1, 2); Assert.Equal(new[] { (1, 2) }, mock.Calls.Sum()); }](https://pbs.twimg.com/media/E0cuabxUYAMFV4h.png?name=small&format=webp)



