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

Multi Target debug - ECONNREFUSED with Console - integrated terminal #40298

Closed
nroberts1 opened this issue Dec 15, 2017 · 2 comments
Closed

Multi Target debug - ECONNREFUSED with Console - integrated terminal #40298

nroberts1 opened this issue Dec 15, 2017 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@nroberts1
Copy link

nroberts1 commented Dec 15, 2017

  • VSCode Version: Code 1.19.0 (816be67, 2017-12-14T09:51:12.123Z)
  • OS Version: Darwin x64 17.2.0
  • Extensions:
Extension Author (truncated) Version
cucumberautocomplete ale 2.5.0

Multiple launch.json setups ran together fail with "Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9228" for any configs with:
"console": "integratedTerminal"

Example:

"version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Editor",
            "runtimeExecutable": "npm",
            "runtimeArgs": [
                "run-script",
                "debug"
            ],
            "port": 9228,
            "cwd": "${workspaceFolder}/Editor",
            "console": "integratedTerminal"
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Engine",
            "runtimeExecutable": "npm",
            "runtimeArgs": [
                "run-script",
                "debug"
            ],
            "port": 9229,
            "cwd": "${workspaceFolder}/engine",
            "console": "integratedTerminal"
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Applications",
            "runtimeExecutable": "npm",
            "runtimeArgs": [
                "run-script",
                "debug"
            ],
            "port": 9227,
            "cwd": "${workspaceFolder}/applications",
            "console": "integratedTerminal"
        }
    ],
    "compounds": [
        {
            "name": "All Servers",
            "configurations": ["Editor", "Engine", "Applications"]
        }
    ]
}

Took a while to narrow the error down to this setup. Each application individually runs ok but when ran together I get the error.

I'm guessing "console": "externalTerminal" maybe my answer but struggling to find an example of setting this up.
Reproduces without extensions: Yes

@vscodebot vscodebot bot added the debug Debug viewlet, configurations, breakpoints, adapter issues label Dec 15, 2017
@nroberts1
Copy link
Author

Got the external terminal working:

launch.json
"console": "externalTerminal"

and

settings.json
"terminal.external.osxExec": "Terminal.app",

This is working fine. Would be interested to know if multiple internal terminals could be made to work though.

@isidorn isidorn assigned weinand and unassigned isidorn Dec 15, 2017
@weinand weinand added the bug Issue identified by VS Code Team member as probable bug label Dec 15, 2017
@weinand
Copy link
Contributor

weinand commented Dec 15, 2017

duplicate of #37589

@weinand weinand closed this as completed Dec 15, 2017
@weinand weinand added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 15, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants