Search Unity

Unity is freezing on attaching debugger

Discussion in 'Editor & General Support' started by jakub-gemrot, Jul 26, 2019.

  1. jakub-gemrot

    jakub-gemrot

    Joined:
    Nov 1, 2014
    Posts:
    16
    Hi! I'm having serious problem with C# script debugging.

    I'm running Unity 2019.1.5f1.

    I'm trying to use VS2017 Enterprise (updated, Visual Studio Tools for Unity 3.9.0.3) and Raider (2019.1.2, updated) both are freezing Unity on attaching. It happens randomly every second/third attach. Unity just freezes. Sometimes it recovers after 3-5 minutes, sometimes it does not.

    I'm usually having 5-20 active breakpoints. Sometimes clearing them out helps, sometimes it freezes Unity when attaching without any breakpoints.

    I've tried to delete .vs / .idea folders, didn't work.

    As two tools are failing, the culprit seems to be Unity.

    I've tried to completely reimport the project into Unity (deleting needless folders), didn't work.
    editor.log does not show anything.

    I'm unable to work effectively with Unity right now :(

    Any suggestions what else to try?

    Cheers!
    Jakub

    P.S.: Rise your hand if it is happening to you :) and report your versions of your tool stack please!

    P.P.S.: Complete info of stuff installed within my VS2017, copy pasted from Help->About Microsoft Visual Studio->Copy Info

    Microsoft Visual Studio Enterprise 2017
    Version 15.9.13
    VisualStudio.15.Release/15.9.13+28307.718
    Microsoft .NET Framework
    Version 4.7.03056

    Installed Version: Enterprise

    Visual C++ 2017 00369-90013-75067-AA523
    Microsoft Visual C++ 2017

    Application Insights Tools for Visual Studio Package 8.14.20131.1
    Application Insights Tools for Visual Studio

    ASP.NET and Web Tools 2017 15.9.04012.0
    ASP.NET and Web Tools 2017

    ASP.NET Core Razor Language Services 15.8.31590
    Provides languages services for ASP.NET Core Razor.

    ASP.NET Web Frameworks and Tools 2017 5.2.61435.0
    For additional information, visit https://www.asp.net/

    Azure App Service Tools v3.0.0 15.9.03024.0
    Azure App Service Tools v3.0.0

    C# Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
    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.

    Cookiecutter 15.9.18254.1
    Provides tools for finding, instantiating and customizing templates in cookiecutter format.

    JavaScript Language Service 2.0
    JavaScript Language Service

    JavaScript Project System 2.0
    JavaScript Project System

    JavaScript UWP Project System 2.0
    JavaScript UWP Project System

    Microsoft Azure Tools 2.9
    Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.20417.1

    Microsoft Continuous Delivery Tools for Visual Studio 0.4
    Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

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

    Microsoft Library Manager 1.0
    Install client-side libraries easily to any web project

    Microsoft MI-Based Debugger 1.0
    Provides support for connecting Visual Studio to MI compatible debuggers

    Microsoft Visual C++ Wizards 1.0
    Microsoft Visual C++ Wizards

    Microsoft Visual Studio Tools for Containers 1.1
    Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

    Microsoft Visual Studio VC Package 1.0
    Microsoft Visual Studio VC Package

    MLGen Package Extension 1.0
    MLGen Package Visual Studio Extension Detailed Info

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

    ProjectServicesPackage Extension 1.0
    ProjectServicesPackage Visual Studio Extension Detailed Info

    Python 15.9.18254.1
    Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

    Python - Django support 15.9.18254.1
    Provides templates and integration for the Django web framework.

    Python - IronPython support 15.9.18254.1
    Provides templates and integration for IronPython-based projects.

    Python - Profiling support 15.9.18254.1
    Profiling support for Python projects.

    ResourcePackage Extension 1.0
    ResourcePackage Visual Studio Extension Detailed Info

    ResourcePackage Extension 1.0
    ResourcePackage Visual Studio Extension Detailed Info

    SQL Server Data Tools 15.1.61906.03120
    Microsoft SQL Server Data Tools

    Test Adapter for Boost.Test 1.0
    Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

    Test Adapter for Google Test 1.0
    Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

    TypeScript Tools 15.9.30524.2002
    TypeScript Tools for Microsoft Visual Studio

    Visual Basic Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
    Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

    Visual Studio Code Debug Adapter Host Package 1.0
    Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

    Visual Studio Tools for CMake 1.0
    Visual Studio Tools for CMake

    Visual Studio Tools for Containers 1.0
    Visual Studio Tools for Containers

    Visual Studio Tools for Unity 3.9.0.3
    Visual Studio Tools for Unity

    Visual Studio Tools for Universal Windows Apps 15.0.28307.718
    The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
     
    qq6017 likes this.