-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is corerun ? #8514
Comments
Actually, if you run |
I'm not exactly familiar with this but have you tried running via the dotnet command? The instructions you're looking at are about debugging the runtime itself so they assume that you build it, use its own corerun and some test managed executable. |
@mikedn I know how to run a dll on Linux. But now I am going to debug process and have to lunch it by LLDB. Finally I launched lldb with below command: It seems dotnet functionally replaced corerun. But the confused is that I did not find corerun in official .NET Core SDK package. But If I compiled coreclr project, I will find corerun in some folders as below. Actually, I want to clarify below information: |
Not really, as far as .NET Core is concerned dotnet is the way to run apps, that's how it has always been. corerun is a coreclr specific tool used to debug and test the runtime itself. |
Check https://docs.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting dotnet is a more complex host that has built-in support for NuGet abstractions. You get it by default from .NET Core tooling. corerun is a simple host that runs whatever is in the given directory. It tends to be preferred by engineers who work on low-level runtime. Would you mind updating the debugging instructions to clarify that they work equally well for both dotnet and corerun hosts? |
Out of date now I think. |
At the .NET Core debugging instruction markdown file
https://github.com/dotnet/coreclr/blob/master/Documentation/building/debugging-instructions.md
mentioned that:
Start lldb (the version the plugin was built with, currently 3.6):
lldb-3.6 corerun HelloWorld.exe linux
But I cannot find corerun from official installation package.
If I compiled manually, I can find some corerun locations like this:
corerun:[micl@centos7dotnet dotnet]$ find -name corerun ./coreclr/src/coreclr/hosts/corerun ./coreclr/bin/Product/Linux.x64.Debug/corerun ./coreclr/bin/obj/Linux.x64.Debug/src/coreclr/hosts/unixcorerun/corerun ./corefx/packages/runtime.linux-x64.microsoft.netcore.testhost/2.1.0-preview1-25409-01/runtimes/linux-x64/native/corerun ./corefx/bin/runtime/netcoreapp-Linux-Debug-x64/corerun ./corefx/bin/testhost/netcoreapp-Linux-Debug-x64/shared/Microsoft.NETCore.App/9.9.9/corerun ./corefx/bin/Unix.AnyCPU.Debug/runtime/netcoreapp/corerun
If I want to launch process from LLDB, how can I do ? Thanks!
The text was updated successfully, but these errors were encountered: