runtime: Mac m1 debugger won't start on aspnet core projects, program has exited
I am using a Mac m1 on Mac OS 11.1. I can recreate this problem every time. If I create a new webapi, even just dotnet new webapi, I can not launch the app using vsdbg debugger. I am using vscode 1.52.1.
The apps just exists. I’ve seen other issues such as this one https://github.com/dotnet/runtime/issues/44958, but it’s not quite the same as I do not receive any error messages.
Here is the tail of the output of the app. Is there some other option I can set in launch to be able to provide more info, to help determine what this issue is, if it’s rosetta, or something else? Any ideas appreciated.
Loaded '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/3.1.10/Microsoft.Extensions.Configuration.FileExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/3.1.10/Microsoft.Extensions.Configuration.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/3.1.10/Microsoft.Extensions.Configuration.UserSecrets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/3.1.10/Microsoft.Extensions.Configuration.Binder.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.10/System.Private.Uri.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.10/System.Buffers.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.10/System.IO.FileSystem.Watcher.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.10/System.ComponentModel.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.10/System.Collections.Concurrent.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/3.1.10/Microsoft.Extensions.FileSystemGlobbing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.10/System.Threading.Timer.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.10/System.Threading.Thread.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. The program '[2705] webapi.dll' has exited with code 0 (0x0).
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (10 by maintainers)
@janvorli thanks for the info and your comments.
I am not sure where to go with this. What I mean is, this didn’t happen on my x64 Mac, but it does now on my m1 MacBook Pro (and 100% of the time in aspnetcore apps). I can debug console apps for what it’s worth. Until this is addressed (by someone?), it really makes development on a Mac challenging to debug (without a bunch of console.writelines).