Unity vscode official debug

Insert image description here
Unlock this first and then upgrade to the latest one

Insert image description here
Then regenerate the project files

Open launch.json

{
    
    
    "version": "0.2.0",
    "configurations": [
        {
    
    
            "name": "Attach to Unity",
            "type": "vstuc",
            "request": "attach"
        }
    ]
}

Just add this
, it's
very convenient

Guess you like

Origin blog.csdn.net/qq_38913715/article/details/133129478