From 3b1f505303c38490bccc5810a324b2461a0ac424 Mon Sep 17 00:00:00 2001 From: Joanna May Date: Mon, 28 Oct 2024 17:20:54 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20vscodium/netcoredbg=20launch=C2=A0confi?= =?UTF-8?q?guration=20example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 1766271..1006ede 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,6 +5,48 @@ // environment variable. On mac or linux, this can be done by adding // the following to your .zshrc, .bashrc, or .bash_profile file: // export GODOT="/Applications/Godot.app/Contents/MacOS/Godot" + { + "name": "🕹 Debug Game (VSCodium)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + "program": "", + "internalConsoleOptions": "openOnSessionStart", + "pipeTransport": { + "debuggerPath": "${extensionInstallFolder:muhammad-sammy.csharp}/.debugger/netcoredbg/netcoredbg", + "pipeCwd": "${workspaceFolder}", + "pipeProgram": "${env:GODOT}", + "pipeArgs": [ + "--debug" + ] + }, + "osx": { + "pipeTransport": { + // netcoredbg for Apple Silicon isn't included with the VSCodium C# + // extension. You must clone it, build it, and setup the path to it. + // You'll need homebrew, cmake, and clang installed. + // + // --------------------------------------------------------------- // + // + // git clone https://github.com/Samsung/netcoredbg.git + // cd netcoredbg + // mkdir build + // cd build + // CC=clang CXX=clang++ cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../bin + // + // In your ~/.zshrc file, add the following line and adjust the path: + // + // export NETCOREDBG="/path/to/netcoredbg/bin/netcoredbg" + // + "debuggerPath": "${env:NETCOREDBG}", + "pipeCwd": "${workspaceFolder}", + "pipeProgram": "${env:GODOT}", + "pipeArgs": [ + "--debug" + ] + } + }, + }, { "name": "🕹 Debug Game", "type": "coreclr",