Skip to content

Debugger does not stop at breakpoints in .NET Core 2.1 #1979

@natemcmaster

Description

@natemcmaster

Environment data

dotnet --info output:

.NET Command Line Tools (2.2.0-preview1-008003)

Product Information:
 Version:            2.2.0-preview1-008003
 Commit SHA-1 hash:  839eccbcaf

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.13
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /Users/namc/.dotnet/sdk/2.2.0-preview1-008003/

Microsoft .NET Core Shared Framework Host

  Version  : 2.1.0-preview1-26122-01
  Build    : ecbd4f6c01c29de8bbf0669b5cd571f353065eb0

VS Code version:

Version 1.20.0-insider (1.20.0-insider)
8708c716367d9ea6822c860c1fcfcff4e2034605

C# Extension version: 1.13.1

Steps to reproduce

  1. Download and install a .NET Core 2.1 SDK preview. https://github.com/dotnet/cli/tree/release/2.1.3xx#installers-and-binaries
  2. Create a new netcoreapp2.1 console app: dotnet new console -o /tmp/test
  3. Open VS Code to /tmp/test
  4. Add launch.json settings to .vscode/
    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": ".NET Core Launch (console)",
                "type": "coreclr",
                "request": "launch",
                "preLaunchTask": "build",
                "program": "${workspaceFolder}/bin/Debug/netcoreapp2.1/test.dll",
                "args": [],
                "cwd": "${workspaceFolder}",
                "console": "internalConsole",
                "stopAtEntry": false,
                "internalConsoleOptions": "openOnSessionStart"
            }
        ]
    }
  5. Add a breakpoint into Program.cs
  6. Launch debugger

Expected behavior

Debugger stops on breakpoints

Actual behavior

No stop.

/private/tmp/test/bin/Debug/netcoreapp2.1/test.pdb exists, but the console output says

Loaded '/private/tmp/test/bin/Debug/netcoreapp2.1/test.dll'. Module was built without symbols

Metadata

Metadata

Labels

BugDebuggerfixedFixed and available in the stable version of C# Extension.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions