microsoft / microsoft/MIEngine

Supposed source code assembly mismatch prevents breakpoints from being hit

Open
#551 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
859
Forks
233
Avg merge
1d 6h
Merged PRs (30d)
3

Description

I followed the Offroad Debugging of .NET Core on Linux OSX from Visual Studio wiki to set up remote debugging with VS 2017. Everything was pretty successful except for the following error about a source code assembly mismatch.

image

If I pause in the debugger, the symbols seem to load fine, but I can’t tell from where using the Modules window. Even after I pause, breakpoints don’t get hit.

image

I used scp to copy bin/Debug/netcoreapp1.1/ from linux to windows, I tried adding the windows directory I copied to as a "Symbol file (.pdb) location in Visual Studio's Options dialog. This wasn't necessary in VS 2015, and doesn't seem to help in VS 2017

I can work around this issue by unchecking “Require source files to exactly match the original version”, so this is a pretty minor issue, but I didn’t have to do this in VS 2015. I also don’t want to forget to recheck this option in the event I attach to a local process.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the reported remote-debugging setup for .NET Core with VS 2017, including the copied bin/Debug/netcoreapp1.1 files and the Visual Studio Modules and symbol settings. Reproduce the source mismatch and breakpoint failure, then compare the behavior with VS 2015; done means matching source files load without disabling exact matching and breakpoints are hit.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.