Skip to content

Conversation

@Rainyan
Copy link
Collaborator

@Rainyan Rainyan commented Jun 7, 2025

Description

Improve the documentation for setting up VS 2022 debugging, since the current instructions using the CMake Targets View can apparently fail for some unknown reason.

For more context: https://discord.com/channels/1235346473827434517/1235355938458701874/1380964062841667594

Toolchain

  • Windows MSVC VS2022

@Rainyan Rainyan added the Documentation Improvements or additions to documentation label Jun 7, 2025
@nullsystem nullsystem requested a review from a team June 7, 2025 17:54
@Rainyan Rainyan merged commit 20a2873 into NeotokyoRebuild:master Jun 7, 2025
5 checks passed
@Rainyan Rainyan deleted the docs branch June 7, 2025 17:55
@Rainyan
Copy link
Collaborator Author

Rainyan commented Jun 28, 2025

Possibly related VS bug: https://developercommunity.visualstudio.com/t/Cant-create-launchvsjson-for-CMake-ex/10913931?sort=active

We made a fix in the next version of Visual Studio; we will let you know when this is available.
Jun 11, 2025 8:55 PM


And as a workaround, for posterity:

  • The file path should be <repodir>/src/.vs/launch.vs.json
  • Contents of the file should be something like (fix the paths):
{
  "version": "0.2.1",
  "defaults": {},
  "configurations": [
    {
      "type": "dll",
      "exe": "D:\\SteamLibrary\\steamapps\\common\\Source SDK Base 2013 Multiplayer\\hl2_win64.exe",
      "project": "CMakeLists.txt",
      "projectTarget": "client.dll (game\\client\\client.dll)",
      "name": "client.dll (game\\client\\client.dll)",
      "currentDir": "D:\\SteamLibrary\\steamapps\\common\\Source SDK Base 2013 Multiplayer",
      "args": [
        "-allowdebug",
        "-insecure",
        "-dev",
        "-sw",
        "-game",
        "D:\\code\\neo\\game\\neo"
      ]
    }
  ]
}

@Rainyan Rainyan mentioned this pull request Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants