-
Notifications
You must be signed in to change notification settings - Fork 385
Open
Description
dotnet dump help indicates that dotnet dump -c somecommand <dump_path> is the right syntax to open a dump and run a command. However this produces Required argument missing for command: analyze. Instead dotnet dump <dump_path> -c somecommand works.
Note the same happens if I use dotnet-dump (with hyphen)
C:\dump>dotnet dump analyze -c clrstack 1.dmp
Required argument missing for command: analyze
analyze:
Starts an interactive shell with debugging commands to explore a dump
Usage:
dotnet-dump analyze [options] <dump_path>
Arguments:
<dump_path> Name of the dump file to analyze.
Options:
-c, --command <command> Run the command on start. [default: System.String[]]
-?, -h, --help Show help and usage information
C:\dump>dotnet dump analyze 1.dmp -c clrstack
Loading core dump: 1.dmp ...
OS Thread Id: 0x4680 (0)
Child SP IP Call Site
00000030E0FFE100 00007ffb3e583f74 [InlinedCallFrame: 00000030e0ffe100]
00000030E0FFE100 00007ffb2f67896b [InlinedCallFrame: 00000030e0ffe100]
00000030E0FFE0D0 00007FFB2F67896B Interop+Kernel32.ReadFile(IntPtr, Byte*, Int32, Int32 ByRef, IntPtr) [/_/src/libraries/System.Console/src/Microsoft.Interop.LibraryImportGenerator/Microsoft.Interop.LibraryImportGenerator/LibraryImports.g.cs @ 427]
00000030E0FFE1C0 00007FFB2F67EF60 System.ConsolePal+WindowsConsoleStream.ReadFileNative(IntPtr, System.Span`1<Byte>, Boolean, Int32 ByRef, Boolean) [/_/src/libraries/System.Console/src/System/ConsolePal.Windows.cs @ 1156]
00000030E0FFE220 00007FFB2F67EDFB System.ConsolePal+WindowsConsoleStream.Read(System.Span`1<Byte>) [/_/src/libraries/System.Console/src/System/ConsolePal.Windows.cs @ 1114]
00000030E0FFE260 00007FFB2F682954 System.IO.ConsoleStream.Read(Byte[], Int32, Int32) [/_/src/libraries/System.Console/src/System/IO/ConsoleStream.cs @ 34]
00000030E0FFE2D0 0000023930BB63C2 System.IO.StreamReader.ReadBuffer() [/_/src/libraries/System.Private.CoreLib/src/System/IO/StreamReader.cs @ 618]
00000030E0FFE350 0000023930BB57C4 System.IO.StreamReader.Read() [/_/src/libraries/System.Private.CoreLib/src/System/IO/StreamReader.cs @ 337]
00000030E0FFE380 00007FFB2F682D2D System.IO.SyncTextReader.Read() [/_/src/libraries/System.Console/src/System/IO/SyncTextReader.cs @ 53]
00000030E0FFE3D0 00007FFB2F67B2E9 System.Console.Read() [/_/src/libraries/System.Console/src/System/Console.cs @ 714]
00000030E0FFE400 00007FFA875906D3 Program.<Main>$(System.String[]) [C:\proj\11\Program.cs @ 2]
Ready to process analysis commands. Type 'help' to list available commands or 'help [command]' to get detailed help on a command.
Type 'quit' or 'exit' to exit the session.
> quit
C:\dump>dotnet dump --version
6.0.328102+ab657cc109f93e48d52f6b12cd7f136bb2d0b311
Reactions are currently unavailable