Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doc on how to start multiple debuggers in same vscode window #6

Closed
alexkli opened this issue Aug 5, 2019 · 1 comment

Comments

@alexkli
Copy link
Contributor

commented Aug 5, 2019

Originally reported and contributed by @moritzraho

The doc states that only one debugger can be started per vscode window, which is not true anymore.
In fact, vscode debug config has the concept of compounds which allows to aggregate multiple configurations.
This also enables debugging for sequences OOTB (i.e. by starting a wskdebug instance for all the actions of a sequence). Which makes wskdebug even more useful :)
Here is a launch.json example that exposes a config starting 2 wskdebug instances:

{
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "mypackage/action1",
      "runtimeExecutable": "wskdebug",
      "args": [
        "tmypackage/action1",
        "${workspaceFolder}/action1.js"
      ],
      "localRoot": "${workspaceFolder}/actions/hello",
      "remoteRoot": "/code",
      "outputCapture": "std"
    },
    {
      "type": "node",
      "request": "launch",
      "name": "mypackage/action2",
      "runtimeExecutable": "wskdebug",
      "args": [
        "mypackage/action2",
        "${workspaceFolder}/action2.js"
      ],
      "localRoot": "${workspaceFolder}/actions/hello2",
      "remoteRoot": "/code",
      "outputCapture": "std"
    }
  ],
  "compounds": [
    {
      "name": "All actions",
      "configurations": [
        "mypackage/action1",
        "mypackage/action2"
      ]
    }
  ]
}

@alexkli alexkli added the task label Aug 5, 2019

@alexkli

This comment has been minimized.

Copy link
Contributor Author

commented Aug 5, 2019

Fixed by #7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.