SketchUp / sketchup-ruby-debugger

Ruby API debugger for SketchUp 2014 and later.
MIT License
78 stars 34 forks source link

Can't start sketchup from debugger #26

Closed marcosyu closed 4 years ago

marcosyu commented 4 years ago

Debugger error: Client: Error: connect ECONNREFUSED 127.0.0.1:7000. running first the sketchup with args then run debug on vscode would work but I can't run the app automatically

task.json

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Debug SketchUp 2019",
      "type": "shell",
      "command": "open -a '/Applications/SketchUp 2019/SketchUp.app' --args -rdebug 'ide port=7000 [wait]'",
      "windows": {
        "command": "&'C:/Program Files/SketchUp/SketchUp 2019/SketchUp.exe' -rdebug 'ide port=7000 [wait]'"
      }
    }
  ]
}

launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for rdebug-ide",
            "type": "Ruby",
            "request": "attach",
            "cwd": "${workspaceRoot}",
            "remoteHost": "127.0.0.1",
            "remotePort": "7000",
            "remoteWorkspaceRoot": "${workspaceRoot}"
        }
    ]
}