title: Visual Studio Code debugging the default ASP.NET Core MVC WebApp: does not work
body: <p>I am using Manjaro linux and tried to debug the default ASP.NET Core MVC project but the debugging stopped without any error </p>
  
  <p>I created the project with: <code>dotnet new mvc</code> in a <code>Meow</code> folder, nothing special, and then added a new configuration <code>.NET Core Launch (web)</code>.</p>
  
  <p>It turns out that there is only a call to <code>dotnet build</code> defined in the <code>build</code> task in <code>tasks.json</code> as defined in <code>preLaunchTask</code> of the <code>launch.json</code> and that's it the debugging process starts and stops without showing any error.</p>
  
  <p>When running <code>dotnet run</code>, everything works, so I am suspecting the issue comes more from my Visual Studio debug configuration.</p>
  
  <p>In terminal tab I have:</p>
  
  <pre><code>&gt; Executing task: dotnet build /home/perret/Desktop/Playground/CSharpmusement/Meow/Meow.csproj &lt;
  
  Microsoft (R) Build Engine version 15.9.20.63311 for .NET Core
  Copyright (C) Microsoft Corporation. All rights reserved.
  
    Restore completed in 86.18 ms for /home/perret/Desktop/Playground/CSharpmusement/Meow/Meow.csproj.
    Meow -&gt; /home/perret/Desktop/Playground/CSharpmusement/Meow/bin/Debug/netcoreapp2.2/Meow.dll
    Meow -&gt; /home/perret/Desktop/Playground/CSharpmusement/Meow/bin/Debug/netcoreapp2.2/Meow.Views.dll
  
  Build succeeded.
      0 Warning(s)
      0 Error(s)
  
  Time Elapsed 00:00:04.62
  
  Terminal will be reused by tasks, press any key to close it.
  </code></pre>
  
  <p>The two files below that have been auto generated look fine.</p>
  
  <p><code>launch.json</code></p>
  
  <pre><code>{
     // Use IntelliSense to find out which attributes exist for C# debugging
     // Use hover for the description of the existing attributes
     // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
     "version": "0.2.0",
     "configurations": [
          {
              "name": ".NET Core Launch (web)",
              "type": "coreclr",
              "request": "launch",
              "preLaunchTask": "build",
              // If you have changed target frameworks, make sure to update the program path.
              "program": "${workspaceFolder}/bin/Debug/netcoreapp2.2/Meow.dll",
              "args": [],
              "cwd": "${workspaceFolder}",
              "stopAtEntry": false,
              "internalConsoleOptions": "openOnSessionStart",
              "launchBrowser": {
                  "enabled": true,
                  "args": "${auto-detect-url}",
                  "windows": {
                      "command": "cmd.exe",
                      "args": "/C start ${auto-detect-url}"
                  },
                  "osx": {
                      "command": "open"
                  },
                  "linux": {
                      "command": "xdg-open"
                  }
              },
              "env": {
                  "ASPNETCORE_ENVIRONMENT": "Development"
              },
              "sourceFileMap": {
                  "/Views": "${workspaceFolder}/Views"
              }
          },
          {
              "name": ".NET Core Attach",
              "type": "coreclr",
              "request": "attach",
              "processId": "${command:pickProcess}"
          }
      ,]
  }
  </code></pre>
  
  <p><code>tasks.json</code>:</p>
  
  <pre><code>{
      "version": "2.0.0",
      "tasks": [
          {
              "label": "build",
              "command": "dotnet",
              "type": "process",
              "args": [
                  "build",
                  "${workspaceFolder}/Meow.csproj"
              ],
              "problemMatcher": "$msCompile"
          }
      ]
  }
  </code></pre>
  
  <p>[Update 1]</p>
  
  <p>Tried to uninstall omnisharp and reinstall it (with a VSCode reboot in between):</p>
  
  <pre><code>Starting OmniSharp server at 2/3/2019, 11:19:16 AM
      Target: /home/perret/Desktop/Playground/CSharpmusement/Meow
  
  OmniSharp server started with Mono 5.16.0.
      Path: /home/perret/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/OmniSharp.exe
      PID: 21990
  
  [info]: OmniSharp.Stdio.Host
          Starting OmniSharp on manjaro 0.0 (x64)
  [info]: OmniSharp.Services.DotNetCliService
          DotNetPath set to dotnet
  [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
          Located 2 MSBuild instance(s)
              1: Mono 15.0 - "/usr/lib/mono/msbuild/15.0/bin"
              2: StandAlone 15.0 - "/home/perret/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin"
  [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
          Registered MSBuild instance: Mono 15.0 - "/usr/lib/mono/msbuild/15.0/bin"
              CscToolPath = /home/perret/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Roslyn
              CscToolExe = csc.exe
  [info]: OmniSharp.Cake.CakeProjectSystem
          Detecting Cake files in '/home/perret/Desktop/Playground/CSharpmusement/Meow'.
  [info]: OmniSharp.Cake.CakeProjectSystem
          Could not find any Cake files
  [info]: OmniSharp.WorkspaceInitializer
          Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
  [info]: OmniSharp.MSBuild.ProjectSystem
          No solution files found in '/home/perret/Desktop/Playground/CSharpmusement/Meow'
  [info]: OmniSharp.MSBuild.ProjectManager
          Queue project update for '/home/perret/Desktop/Playground/CSharpmusement/Meow/Meow.csproj'
  [info]: OmniSharp.Script.ScriptProjectSystem
          Detecting CSX files in '/home/perret/Desktop/Playground/CSharpmusement/Meow'.
  [info]: OmniSharp.Script.ScriptProjectSystem
          Could not find any CSX files
  [info]: OmniSharp.WorkspaceInitializer
          Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
  [info]: OmniSharp.WorkspaceInitializer
          Configuration finished.
  [info]: OmniSharp.Stdio.Host
          Omnisharp server running using Stdio at location '/home/perret/Desktop/Playground/CSharpmusement/Meow' on host 21903.
  [info]: OmniSharp.MSBuild.ProjectManager
          Loading project: /home/perret/Desktop/Playground/CSharpmusement/Meow/Meow.csproj
  [info]: OmniSharp.MSBuild.ProjectManager
          Successfully loaded project file '/home/perret/Desktop/Playground/CSharpmusement/Meow/Meow.csproj'.
  [info]: OmniSharp.MSBuild.ProjectManager
          Adding project '/home/perret/Desktop/Playground/CSharpmusement/Meow/Meow.csproj'
  [info]: OmniSharp.MSBuild.ProjectManager
          Update project: Meow
  </code></pre>
  
  <p>[Update 2]</p>
  
  <p>The debugger is installed properly (I tried a brand new fresh installed):</p>
  
  <pre><code>Installing C# dependencies...
  Platform: linux, x86_64, name=manjaro, version=unknown
  
  Downloading package 'OmniSharp for Linux (x64)' (30903 KB).................... Done!
  Installing package 'OmniSharp for Linux (x64)'
  
  Downloading package '.NET Core Debugger (linux / x64)' (59407 KB).................... Done!
  Installing package '.NET Core Debugger (linux / x64)'
  
  Downloading package 'Razor Language Server (Linux / x64)' (44979 KB).................... Done!
  Installing package 'Razor Language Server (Linux / x64)'
  
  Finished
  </code></pre>
  
  <p><a href="https://github.com/OmniSharp/omnisharp-vscode/issues/2837" rel="nofollow noreferrer">Also filed an issue on Github</a>.</p>