Bug 14391 - Adding an incorrect function breakpoint breaks the debugger
Summary: Adding an incorrect function breakpoint breaks the debugger
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-09-03 06:29 UTC by Lluis Sanchez
Modified: 2014-04-14 15:53 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 Developer Community or GitHub 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 FIXED

Description Lluis Sanchez 2013-09-03 06:29:18 UTC
* Open any project
* Click on Add Function Breakpoint
* Enter "Foo" as function name
* Try to debug the project

XS shows the error "Could not connect to the debugger", and this exception is printed in the log:

ERROR [2013-09-03 12:25:37Z]: Error in debugger
Mono.Debugging.Soft.ConnectionException: Could not connect to the debugger. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.Debugging.Soft.SoftDebuggerSession.CheckTypeName (Mono.Debugger.Soft.TypeMirror type, System.String name) [0x00000] in <filename unknown>:0 
  at Mono.Debugging.Soft.SoftDebuggerSession.ResolveBreakpoints (Mono.Debugger.Soft.TypeMirror type) [0x00051] in /Users/lluis/prog/work/ui/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerSession.cs:1963 
  at Mono.Debugging.Soft.SoftDebuggerSession.HandleEvent (Mono.Debugger.Soft.Event e) [0x00326] in /Users/lluis/prog/work/ui/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerSession.cs:1540 
  at Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet (Mono.Debugger.Soft.EventSet es) [0x000ac] in /Users/lluis/prog/work/ui/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerSession.cs:1311 
  at Mono.Debugging.Soft.SoftDebuggerSession.ConnectionStarted (Mono.Debugger.Soft.VirtualMachine vm) [0x000e5] in /Users/lluis/prog/work/ui/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerSession.cs:446 
  at Mono.Debugging.Soft.SoftDebuggerSession.<StartLaunching>m__2 (IAsyncResult ar) [0x00008] in /Users/lluis/prog/work/ui/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerSession.cs:211 
  at Mono.Debugging.Soft.SoftDebuggerSession+<HandleConnectionCallbackErrors>c__AnonStorey7.<>m__5 (IAsyncResult ar) [0x00015] in /Users/lluis/prog/work/ui/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerSession.cs:319 
  --- End of inner exception stack trace ---
ERROR [2013-09-03 12:25:45Z]: Failed to upload report to the server
System.Net.WebException: The request timed out
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Core.LogReporting.LogReportingService.TryUploadReport (System.String filename, System.Byte[] data) [0x00102] in /Users/lluis/prog/work/ui/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.LogReporting/LogReportingService.cs:180 
ERROR [2013-09-03 12:27:25Z]: Failed to upload report to the server
System.Net.WebException: The request timed out
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Core.LogReporting.LogReportingService.TryUploadReport (System.String filename, System.Byte[] data) [0x00102] in /Users/lluis/prog/work/ui/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.LogReporting/LogReportingService.cs:180
Comment 1 Christopher McGinnis 2014-01-06 04:03:38 UTC
I am experiencing the same issue.  

Xamarin Studio
Version 4.2.2 (build 2)
Installation UUID: b92ede2a-a4f8-4d5b-a5b0-bb824f49b638
Runtime:
	Microsoft .NET 4.0.30319.34003
	GTK+ 2.24.20 theme: MS-Windows
	GTK# (2.12.0.0)

Xamarin.Android
Version: 4.10.1 (Business Edition)
Android SDK: C:\Users\Christopher\AppData\Local\Android\android-sdk
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_39
java version "1.6.0_39"
Java(TM) SE Runtime Environment (build 1.6.0_39-b04)
Java HotSpot(TM) Client VM (build 20.14-b01, mixed mode, sharing)

Build Information
Release ID: 402020002
c5f82958ae7d9af652b44b87ceff777b3ad19b91
Build date: 2013-11-19 10:28:29Z
Xamarin addins: a4044fee09138f6fd031a9944b7caaeb51e57e80

Operating System
Windows 6.2.9200.0 (64-bit)


​Microsoft Visual Studio Premium 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Premium

LightSwitch for Visual Studio 2013   06191-004-0456024-02949
Microsoft LightSwitch for Visual Studio 2013

Microsoft Office Developer Tools for Visual Studio 2013 ENU   06191-004-0456024-02949
Microsoft Office Developer Tools for Visual Studio 2013 ENU

Team Explorer for Visual Studio 2013   06191-004-0456024-02949
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06191-004-0456024-02949
Microsoft Visual Basic 2013

Visual C# 2013   06191-004-0456024-02949
Microsoft Visual C# 2013

Visual C++ 2013   06191-004-0456024-02949
Microsoft Visual C++ 2013

Visual F# 2013   06191-004-0456024-02949
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06191-004-0456024-02949
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06191-004-0456024-02949
Windows Phone SDK 8.0 - ENU

ASP.NET and Web Tools   2013.1.41009
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.0.11001.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.0
Provides common services for use by Azure Mobile Services and Windows Azure Tools.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Node.js Tools   1.0.11119.03
Adds support for developing and debugging Node.js apps in Visual Studio

Node.js Tools - Profiling   1.0.11119.03
Profiling support for Node.js projects.

NuGet Package Manager   2.7.41101.371
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SlowCheetah - XML config transforms    1.0
This package enables you to transform your app.config or any other XML file based on the build configuration. It also adds additional tooling to help you create XML transforms.

SQL Server Data Tools   12.0.30919.1
Microsoft SQL Server Data Tools

Visual Studio 12 Editor Extension   1.0
Information about my package

Windows Azure Mobile Services Tools   1.0
Windows Azure Mobile Services Tools

Windows Azure Remote Debugging   1.0
Windows Azure Remote Debugging Community Technology Preview

Windows Azure Tools   2.2
Windows Azure Tools for Microsoft Visual Studio 2013 - v2.2.11003.1601

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin.Android   4.10.01073 (d23a19bf)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   1.8.365 (8cb9dbd0)
Visual Studio extension to enable development for Xamarin.iOS​
Comment 2 Christopher McGinnis 2014-01-06 04:09:10 UTC
I should note that this happens to me WITHOUT any breakpoints.
Comment 3 Christopher McGinnis 2014-01-06 04:11:01 UTC
Additionally, this happens to me in Visual Studio, not Xamarin Studio.  Xamarin Studio is able to connect and debug normally.
Comment 5 Jeffrey Stedfast 2014-04-14 15:53:48 UTC
fixed in debugger-libs master