Bug 55411 - Placing breakpoint in XS resolves to wrong location with Alpha builds
Summary: Placing breakpoint in XS resolves to wrong location with Alpha builds
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: 5.0 (2017-02)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2017-04-19 20:58 UTC by Chris Hamons
Modified: 2017-04-24 13:55 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Chris Hamons 2017-04-19 20:58:09 UTC
Here is what I have installed (Alpha channel of today):

https://gist.github.com/chamons/2a5c7f6807524c3f24bfab0266bd1dde

Repro:
git clone https://github.com/chamons/Embeddinator-4000/tree/mono_debugging_issue somewhere
git submodule update --recursive --init
cd tests/objc-cli/ && make
open open objcgen/objcgen.sln 
Build solution
Open objcgen run configration and change argument to full path of your testlib bin/Debug 
Open objcgenerator-processor.cs and set a breakpoint at line 101:
			foreach (var mi in t.GetMethods (BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly)) {
Run
Note you will get a breakpoint at line 154:
		List<Type> enums = new List<Type> ();
with the output containing:

Resolved pending breakpoint at 'objcgenerator-processor.cs:101,1' to void ObjC.ObjCGenerator..ctor () [0x00016].
Comment 1 Zoltan Varga 2017-04-20 01:36:46 UTC
I get:

Unable to find version '4.4.0.0' of package 'Mono.Options'.
Unable to find version '3.6.1' of package 'NUnit'.
Unable to find version '3.6.1' of package 'NUnit.ConsoleRunner'.
Unable to find version '3.5.0' of package 'NUnit.Extension.NUnitV2ResultWriter'.
Comment 2 Chris Hamons 2017-04-20 13:13:29 UTC
Looks like I missed a step.

nuget restore generator.sln

should fix that.
Comment 3 Zoltan Varga 2017-04-20 13:47:53 UTC
Thats the command which prints the above errors.
Comment 4 Rodrigo Kumpera 2017-04-21 22:06:28 UTC
Chris,

Looks like Zoltan is stuck on getting nuget to work.
Comment 5 Zoltan Varga 2017-04-21 23:15:48 UTC
I couldn't reproduce this. With Chris's binaries, the debugger doesn't work, because the .pdb files embed full paths, and if I recompile, I can't reproduce it.
Comment 6 Chris Hamons 2017-04-24 13:55:50 UTC
Yeah, we tried awhile to reproduce this on Zoltan's machine.

I'm out of ideas. :(

I guess I just have to hope it goes away next update.