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. Dismiss Notice

Question vs code debug error

Discussion in 'Editor & General Support' started by Aseliot, Dec 4, 2022.

  1. Aseliot

    Aseliot

    Joined:
    May 7, 2019
    Posts:
    35
    Literaly worked fine yesterday and now throw this error?

    upload_2022-12-4_20-42-39.png

    launch.json

    Code (JavaScript):
    1. {
    2.     "version": "0.2.0",
    3.     "configurations": [
    4.         {
    5.             "name": "Unity Editor",
    6.             "type": "unity",
    7.             "request": "launch"
    8.         },
    9.         {
    10.             "name": "Windows Player",
    11.             "type": "unity",
    12.             "request": "launch"
    13.         },
    14.         {
    15.             "name": "OSX Player",
    16.             "type": "unity",
    17.             "request": "launch"
    18.         },
    19.         {
    20.             "name": "Linux Player",
    21.             "type": "unity",
    22.             "request": "launch"
    23.         },
    24.         {
    25.             "name": "iOS Player",
    26.             "type": "unity",
    27.             "request": "launch"
    28.         },
    29.         {
    30.             "name": "Android Player",
    31.             "type": "unity",
    32.             "request": "launch"
    33.         }
    34.     ]
    35. }
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
    Wow, Visual Studio blew up... who knew?

    More useful might be where when why how what:

    How to report your problem productively in the Unity3D forums:

    http://plbm.com/?p=220

    This is the bare minimum of information to report:

    - what you want
    - what you tried
    - what you expected to happen
    - what actually happened, especially any errors you see
    - links to documentation you used to cross-check your work (CRITICAL!!!)

    You may edit your post above.

    Otherwise, it's just the usual near-daily smoothing down of Visual Studios easily-ruffled feathers:

    This may help you with intellisense and possibly other Visual Studio integration problems:

    Sometimes the fix is as simple as doing Assets -> Open C# Project from Unity. Other times it requires more.

    Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.

    Barring all that, move on to other ideas:

    https://forum.unity.com/threads/intellisense-not-working-with-visual-studio-fix.836599/

    Also, try update the VSCode package inside of Unity: Window -> Package Manager -> Search for Visual Studio Code Editor -> Press the Update button

    Also, this: https://forum.unity.com/threads/no-suggestions-in-vscode.955197/#post-6227874
     
    Aseliot likes this.
  3. Aseliot

    Aseliot

    Joined:
    May 7, 2019
    Posts:
    35
    Alright the Assets -> Open C# Project from Unity worked for me now.

    Thing I just literally just set this up and then it stops working the moment after I got it to work.
    I used to use Visual Studio but I've just grown more accustomed to vs code's hotkeys etc.
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
    First time using Microsoft software? :)