Title: Info needed for "attach" (in launch config) is unclear. · Issue #1379 · microsoft/vscode-python · GitHub
Open Graph Title: Info needed for "attach" (in launch config) is unclear. · Issue #1379 · microsoft/vscode-python
X Title: Info needed for "attach" (in launch config) is unclear. · Issue #1379 · microsoft/vscode-python
Description: If you want to attach then you must manually adjust the "Python: Attach" launch config (or make a new one) with the appropriate information. However, it is unclear exactly what information the user is meant to provide. Any help is out-of...
Open Graph Description: If you want to attach then you must manually adjust the "Python: Attach" launch config (or make a new one) with the appropriate information. However, it is unclear exactly what information the user...
X Description: If you want to attach then you must manually adjust the "Python: Attach" launch config (or make a new one) with the appropriate information. However, it is unclear exactly what informatio...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/1379
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Info needed for \"attach\" (in launch config) is unclear.","articleBody":"If you want to attach then you must manually adjust the \"Python: Attach\" launch config (or make a new one) with the appropriate information. However, it is unclear exactly what information the user is meant to provide. Any help is out-of-band since the launch config doesn't have any comments (I blame JSON). Here's what a user may specify:\r\n\r\n* localRoot - ???\r\n* remoteRoot - ???\r\n* port - presumably the port to which VSC will connect (how?)\r\n* secret - ???\r\n* host - presumably where the process is running; maybe where something else is running instead (e.g. a debugger tied to the target process)\r\n\r\nThis may lead to at least the following questions for a user:\r\n\r\n* what are `secret`, `localRoot` and `remoteRoot`? (I can guess at \"secret\", but have no clue on the other two)\r\n* `host` and `port` imply the debugger will attach via a network socket, so...\r\n * what has to be running on the other end? (e.g. ssh, https, detached debugger)\r\n * how do I start that? (making this easier is a separate matter; see #1380)\r\n * how do I specify which process I want to attach? (there is no `pid` option in the config) (see #1381)\r\n* did the target process need to be started in a special way (e.g. via the debugger and then detached)?\r\n * what if I want to debug an existing process that wasn't started in a special way?\r\n\r\nIndirectly:\r\n\r\n* what is `attach` going to do? (connect to a detached debugger? start a debugger in an already running process?)\r\n* how will VSC reach the host (if not localhost)? (e.g. ssh, http)\r\n\r\nDocumentation on this would be great (maybe I missed it). However, it won't be quite as useful for the user trying to use `attach` since the launch config can't point them there. I'm not sure we can do much about that.\r\n\r\n(this is related to #1378)\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.22.1\r\n- Extension version (available under the Extensions sidebar): 2018.3.1\r\n- OS and version: Ubuntu 16.04\r\n- Python version (& distribution if applicable, e.g. Anaconda): n/a\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): n/a\r\n- Relevant/affected Python packages and their versions: n/a\r\n\r\n## Actual behavior\r\n\r\nsee above\r\n\r\n## Expected behavior\r\n\r\nsee above\r\n\r\n## Steps to reproduce:\r\n\r\nn/a\r\n\r\n## Logs\r\n\r\nn/a","author":{"url":"https://github.com/ericsnowcurrently","@type":"Person","name":"ericsnowcurrently"},"datePublished":"2018-04-12T18:25:58Z","url":"https://github.com/microsoft/vscode-python/issues/1379"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3375c2e5-cf11-07b4-0e54-18ac4ed02c54 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B748:24E657:693E8D:8D0C70:6AFE5024 |
| html-safe-nonce | bea1588d8190b42be580eb876195c943c845018292b9cf246d120310c57b43a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzQ4OjI0RTY1Nzo2OTNFOEQ6OEQwQzcwOjZBRkU1MDI0IiwidmlzaXRvcl9pZCI6IjI4NTI3MzgxNzQ4MTQxNDY1OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 70d0c76e98349a7326e9487c10848ef9af3983613e05c1a39157a534ffcdbc9b |
| hovercard-subject-tag | issue:313837737 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/1379/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b867fb0a9f83b835c4062eb102e2e87295639c0a4caa53b263d630e332cc6ef8/microsoft/vscode-python/issues/1379 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b867fb0a9f83b835c4062eb102e2e87295639c0a4caa53b263d630e332cc6ef8/microsoft/vscode-python/issues/1379 |
| og:image:alt | If you want to attach then you must manually adjust the "Python: Attach" launch config (or make a new one) with the appropriate information. However, it is unclear exactly what information the user... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericsnowcurrently |
| hostname | github.com |
| expected-hostname | github.com |
| None | 894d3c8b932306ed8425e8dcbe0c1089667e487c5fe7b8a05d17e7b685207429 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44570ad53e12be09be8000af683c29166c4007cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width