8000 Debugger hangs at exception and highlights wrong line · Issue #18684 · dotnet/fsharp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Debugger hangs at exception and highlights wrong line #18684
Open
@Happypig375

Description

@Happypig375

Repro steps

Clone https://github.com/Happypig375/FSharpLikeOperatorHangRepro, debug the project

Expected behavior

I can investigate where the IndexOutOfRangeException occurred. Debugger should highlight line 13 let (_a,_b) = sscanf "(%%%s,%M)" "(%hello, 4.53)" which is the real cause.

Actual behavior

Visual Studio immediately hangs. Cannot investigate.

Debugger also highlights line 9 let xb = sscanf "(%i-%i-%f-%i-%i-%i-%i-%i-%i)" "(32-66-888-4-5-6-7-8-9)" instead of the real culprit line 13 let (_a,_b) = sscanf "(%%%s,%M)" "(%hello, 4.53)".

Known workarounds

Deleting lines starting line 16 in Program.fs makes VS not hang anymore. Perhaps some code has exponential time complexity?

Related information
Microsoft Visual Studio Enterprise 2022 (2)
Version 17.14.2
VisualStudio.17.Release/17.14.2+36121.58
Microsoft .NET Framework
Version 4.8.09037

Installed Version: Enterprise

ASP.NET and Web Tools   17.14.114.53116
ASP.NET and Web Tools

Azure App Service Tools v3.0.0   17.14.114.53116
Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools   17.14.114.53116
Azure Functions and Web Jobs Tools

C# Tools   4.14.0-3.25229.6+871ef6369443071681de3351d30f41ea78ab48e6
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Dotfuscator Community Edition   6.5.3+7f0b0a9d18
PreEmptive Protection - Dotfuscator CE

GitHub Copilot   17.14.698.11175
GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.

Microsoft Azure Tools for Visual Studio   2.9
Support for Azure Cloud Services projects

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Mono Debugging for Visual Studio   17.14.11 (f3bc644800)
Support for debugging Mono processes with Visual Studio

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

NVIDIA CUDA 12.8 Wizards   12.8
Wizards to create new NVIDIA CUDA projects and source files.

NVIDIA Nsight Visual Studio Edition   2025.1.0.25055
NVIDIA Nsight Visual Studio Edition provides tools for GPGPU and graphics development.  Copyright © NVIDIA 2010 - 2025.
•Direct3D® and DirectX® are registered trademarks of Microsoft Corporation in the United States and/or other countries.
•Microsoft Detours is used under the Professional license (http://research.microsoft.com/en-us/projects/detours/).
•Gardens Point Parser Generator Copyright 2005 Queensland University of Technology (QUT). All rights reserved.
•Icons from Axialis Software used under the licensing terms found here: www.axialis.com
•NLog Copyright © 2004-2006 Jaroslaw Kowalski (jaak@jkowalski.net)
•zlib and libpng used under the zlib/libpnc license (http://opensource.org/licenses/Zlib) 
•Breakpad Copyright ©2006, Google Inc. All rights reserved.
•The OpenGL Extension Wrangler Library
Copyright ©2008-2016, Nigel Stewart (nigels@users.sourceforge.net), Copyright ©2002-2008, Milan Ikits (milan.ikits@ieee.org), Copyright ©2002-2008, Marcelo E. Magallon (mmagallo@debian.org), Copyright ©2002, Lev Povalahev. 
All rights reserved. 
•LIBSSH2 Copyright ©2004-2007 Sara Golemon (sarag@libssh2.org), Copyright ©2005,2006 Mikhail Gusarov (dottedmag@dottedmag.net),Copyright ©2006-2007 The Written Word, Inc.,Copyright ©2007 Eli Fant (elifantu@mail.ru),Copyright ©2009-2014 Daniel Stenberg., Copyright ©2008, 2009 Simon Josefsson.
All rights reserved. 
•xxHASH Library Copyright ©2012-2014, Yann Collet. All rights reserved. 
•FMT Copyright ©2012 - 2016, Victor Zverovich 
•Font Awesome Copyright 2018 Fonticons, Inc. 
•ELF Definitions Copyright (c) 2010 Joseph Koshy, All rights reserved.
•expected, used under the Creative Commons 1.0 Universal License (http://creativecommons.org/publicdomain/zero/1.0/)
•Boost, used under the  Boost Software License (https://www.boost.org/users/license.html)
•gsl-lite, The MIT License (MIT), Copyright (c) 2015 Martin Moene, Copyright (c) 2015 Microsoft Corporation. All rights reserved. 
•Protocol Buffer, Copyright 2008 Google Inc.  All rights reserved.
•ThreadPool, Copyright (c) 2012 Jakob Progsch, Václav Zeman

The full text of the license for the OSS components used in this product is available as part of the Nsight Visual Studio Edition EULA (https://docs.nvidia.com/nsight-visual-studio-edition/eula/index.html).

Warning: This computer program is protected by copyright law and international treaties. Unauthorized reproduction or distribution of this program, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under the law.

NVIDIA Nsight Visual Studio Edition - CUDA support   2025.1.0.25055
NVIDIA Nsight Visual Studio Edition - CUDA support provides tools for CUDA development and debugging.

Razor (ASP.NET Core)   17.14.3.2526604+8cce8109a5fd0118f26e7622dd596fd2c5b912ab
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools   17.14.26.0
Microsoft SQL Server Data Tools

TypeScript Tools   17.0.40502.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   4.14.0-3.25229.6+871ef6369443071681de3351d30f41ea78ab48e6
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools   17.14.0-beta.25230.7+c1a9d78ad4a474a716ccffb4367ed5151e3f7c9f
Microsoft Visual F# Tools

Visual Studio IntelliCode   2.2
AI-assisted development for Visual Studio.

VisualStudio.DeviceLog   1.0
Information about my package

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

VSPackage Extension   1.0
VSPackage Visual Studio Extension Detailed Info

Xamarin   17.14.262 (5436a1201a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   17.14.3.0 (tags/main-61034a2(11307611)^0@61034a2622)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   17.13.0 (6570271)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   13.2.2.0 (d17-5/45b0e14)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: d9a6e87
    Java.Interop: xamarin/java.interop/d17-5@149d70fe
    SQLite: xamarin/sqlite/3.40.1@68c69d8
    Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-5@ca1552d


Xamarin.iOS and Xamarin.Mac SDK   16.4.0.23 (9defd91b3)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0