A simple VS Code debugger extension for Rhinoceros based on vscode-mono-debug.
Use a launch.json
with the following:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Rhinoceros",
"type": "rhino",
"request": "launch",
"runtimeExecutable": "/Applications/Rhinoceros.app/Contents/MacOS/Rhinoceros",
"passDebugOptionsViaEnvironmentVariable": true,
"env": {
// optional: register your plugin(s) to load
"RHINO_PLUGIN_PATH": "${workspaceFolder}/Path/To/MyPlugin.rhp",
"GRASSHOPPER_PLUGINS": "${workspaceFolder}/Path/To/MyGHPlugin.gha"
}
}
]
}
Building and using VS Code rhino-debug requires a basic POSIX-like environment, a Bash-like shell, and an installed Mono framework.
First, clone the rhino-debug project:
$ git clone --recursive https://github.com/mcneel/vscode-rhino-debug
To build the extension vsix, run:
$ cd vscode-rhino-debug
$ npm install
$ make