Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Debugger can no longer attach

Discussion in 'Editor & General Support' started by EllaDott, Nov 28, 2021.

  1. EllaDott

    EllaDott

    Joined:
    May 4, 2017
    Posts:
    13
    Yesterday around this time I was using the debugger and it worked fine. Now it cannot attach and visual studio produces this:

    Build started...
    ------ Build started: Project: UnityEngine.UI, Configuration: Debug Any CPU ------
    D:\Projects\VRHO\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\EventSystem\Raycasters\PhysicsRaycaster.cs(49,24): info UNT0007: Unity objects should not use null coalescing.
    D:\Projects\VRHO\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\Slider.cs(589,39): info UNT0007: Unity objects should not use null coalescing.
    D:\Projects\VRHO\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\Graphic.cs(488,17): info UNT0003: Method 'GetComponents' has a preferred generic overload.
    D:\Projects\VRHO\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\Graphic.cs(672,13): info UNT0003: Method 'GetComponents' has a preferred generic overload.
    D:\Projects\VRHO\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\Graphic.cs(697,13): info UNT0003: Method 'GetComponents' has a preferred generic overload.
    D:\Projects\VRHO\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\RectMask2D.cs(124,26): info UNT0007: Unity objects should not use null coalescing.
    D:\Projects\VRHO\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\GraphicRaycaster.cs(312,24): info UNT0007: Unity objects should not use null coalescing.
    D:\Projects\VRHO\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\Mask.cs(25,26): info UNT0007: Unity objects should not use null coalescing.
    D:\Projects\VRHO\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\Mask.cs(56,26): info UNT0007: Unity objects should not use null coalescing.

    I've done a lot of things in between and can't figure out what could have possibly broken the core functionality. The game can still run, it just can't be debugged anymore.
     
  2. EllaDott

    EllaDott

    Joined:
    May 4, 2017
    Posts:
    13
    I think I "fixed" it by going to preferences, and then clicking on "Regenerate project files".