microsoft / microsoft/MIEngine

breakpoints not set if PDBs were built on windows

Open
#540 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

if I build my project in visual studio and copy my whole bin directory from windows to linux, then start debugging, no breakpoints are set when the debuggee launches.

in the output window, i see:

22: (5731282) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",warning="No symbols have been loaded for this document."}

however, if I do a clean 'dotnet build' on linux (with the same source files) then breakpoints are set correctly on launch.

here's my project.json:

{
	"name" : "GatewayClient",
	"version": "1.0.0-*",
	"buildOptions": {
        "emitEntryPoint": true,
        "debugType": "portable",
        "copyToOutput": "appsettings.json",
        "define": []
	},

	"dependencies": {
		"Microsoft.Extensions.Configuration": "1.1.0",
		"Microsoft.Extensions.Configuration.Json": "1.1.0",
		"Microsoft.NETCore.App": {
			"type": "platform",
			"version": "1.1.0"
		},
		"Newtonsoft.Json": "9.0.1"
	},

	"frameworks": {
		"netcoreapp1.0": {
			"imports": "dnxcore50"
		}
	}
}

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

Reproduce the issue using the project.json configuration by copying a Windows-built bin directory to Linux, then compare it with a Linux dotnet build. Start from the breakpoint-modified output showing that symbols were not loaded; done means breakpoints are set when the debuggee launches in both cases.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.