question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`dotnet -d` dumps stack to console

See original GitHub issue

I just did dotnet -d but without anything else

dan@danmose3:~/git/fastregex$ dotnet -d
Telemetry is: Disabled
System.ArgumentException: cannot be empty (Parameter 'name')
   at Microsoft.DotNet.Cli.Utils.ToolCommandName..ctor(String name)
   at Microsoft.DotNet.CommandFactory.LocalToolsCommandResolver.Resolve(CommandResolverArguments arguments)
   at Microsoft.DotNet.CommandFactory.CompositeCommandResolver.Resolve(CommandResolverArguments commandResolverArguments)
   at Microsoft.DotNet.CommandFactory.CommandResolver.TryResolveCommandSpec(ICommandResolverPolicy commandResolverPolicy, String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)
   at Microsoft.DotNet.CommandFactory.CommandFactoryUsingResolver.Create(ICommandResolverPolicy commandResolverPolicy, String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)
dan@danmose3:~/git/fastregex$

My expectation is that it doesn’t dump stack to the console.

version:

dan@danmose3:~/git/fastregex$ dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.100
 Commit:    cd82f021f4

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /usr/share/dotnet/sdk/3.1.100/

Host (useful for support):
  Version: 3.1.0
  Commit:  157910edee

.NET Core SDKs installed:
  3.1.100 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
livarcocccommented, Dec 28, 2019

cc @wli3 can you take a look? Maybe this is a good opportunity for @sfoslund to familiarize herself with this part of the code.

0reactions
baszcommented, Oct 27, 2020

yes it was… thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet-stack diagnostic tool - .NET CLI
Learn how to install and use the dotnet-stack CLI tool which captures and prints the managed stacks for all threads in the target...
Read more >
dotnet-dump diagnostic tool - .NET CLI
The dotnet-dump global tool is a way to collect and analyze dumps on Windows, Linux, and macOS without any native debugger involved.
Read more >
How to print the current Stack Trace in .NET without any ...
Create a breakpoint where you want to see the stack trace. · Right-click the breakpoint and select "Actions..." in VS2015. · Make sure...
Read more >
dotnet-dump analyze Unhandled exception: System. ...
In this case I see that the dump was loaded and we are starting to use the console provider, we are trying to...
Read more >
Manual: Stack trace logging
To use the Console, select the Console menu button, then: To select the same stack trace option for all Console message types, select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found