Title: arguments in launch.json not work in code-server · Issue #4362 · coder/code-server · GitHub
Open Graph Title: arguments in launch.json not work in code-server · Issue #4362 · coder/code-server
X Title: arguments in launch.json not work in code-server · Issue #4362 · coder/code-server
Description: OS/Web Information Web Browser: Google Chrome 92.0.4515.159 Local OS: Windows 10 Professional Workstation Edition 21H1 Remote OS: Red Hat Enterprise Linux release 8.4 (Ootpa) Remote Architecture: x86_64 code-server --version: 3.12.0 b37f...
Open Graph Description: OS/Web Information Web Browser: Google Chrome 92.0.4515.159 Local OS: Windows 10 Professional Workstation Edition 21H1 Remote OS: Red Hat Enterprise Linux release 8.4 (Ootpa) Remote Architecture: x...
X Description: OS/Web Information Web Browser: Google Chrome 92.0.4515.159 Local OS: Windows 10 Professional Workstation Edition 21H1 Remote OS: Red Hat Enterprise Linux release 8.4 (Ootpa) Remote Architecture: x...
Opengraph URL: https://github.com/coder/code-server/issues/4362
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"arguments in launch.json not work in code-server","articleBody":"\u003c!--\r\n\r\nHi there! 👋\r\n\r\nThanks for reporting a bug.\r\n\r\nPlease search for existing issues before filing, as they may contain additional\r\ninformation about the problem and descriptions of workarounds. Provide as much\r\ninformation as you can, so that we can reproduce the issue. Otherwise, we may\r\nnot be able to help diagnose the problem, and may close the issue as\r\nunreproducible or incomplete. For visual defects, please include screenshots to\r\nhelp us understand the issue.\r\n-->\r\n\r\n## OS/Web Information\r\n\r\n- Web Browser: Google Chrome 92.0.4515.159\r\n- Local OS: Windows 10 Professional Workstation Edition 21H1\r\n- Remote OS: Red Hat Enterprise Linux release 8.4 (Ootpa)\r\n- Remote Architecture: x86_64\r\n- `code-server --version`: 3.12.0 b37ff28a0a582aee84a8f961755d0cb40a4081db\r\n\r\n## Steps to Reproduce\r\n\r\n1. create a project\r\n``` bash\r\nmkdir -p code-server-debug-args\r\nmkdir -p code-server-debug-args/.vscode\r\n```\r\n\r\n2. create launch.json(the arguments is `myargs`)\r\n``` bash\r\ncat \u003c\u003c'EOF'>.vscode/launch.json\r\n{\r\n \"configurations\": [\r\n {\r\n \"name\": \"Launch Package\",\r\n \"type\": \"go\",\r\n \"request\": \"launch\",\r\n \"mode\": \"auto\",\r\n \"program\": \"${fileDirname}\",\r\n \"args\": [\r\n \"myargs\"\r\n ]\r\n }\r\n ]\r\n}\r\nEOF\r\n```\r\n\r\n3. create main.go\r\n``` bash\r\ncat \u003c\u003c'EOF'>main.go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"os\"\r\n)\r\n\r\nfunc main() {\r\n\tfmt.Print(os.Args)\r\n}\r\nEOF\r\n```\r\n4. create go.mod\r\n``` bash\r\ncat \u003c\u003c'EOF'>go.mod # optional\r\nmodule app\r\n\r\ngo 1.15\r\nEOF\r\n```\r\n5. debug in code-server\r\n\r\nthe project above can be download on https://github.com/aiziyuer/code-server-debug-args.\r\n\r\n## Expected\r\n\r\nthe test program shoud output my args `myargs`\r\n```\r\n[/tmp/__debug_bin458249886 myargs]\r\n```\r\n\r\n## Actual\r\n\r\n### Case 01: go run\r\n\r\n``` bash\r\n➜ code-server-debug-args git:(master) ✗ go run main.go myargs\r\n[/tmp/go-build412015233/b001/exe/main myargs]\r\n```\r\n\r\n### Case 02: debug in vscode(remote ssh)\r\n\r\n``` bash\r\nStarting: /root/go/bin/dlv-dap dap --check-go-version=false --listen=127.0.0.1:41885 --log-dest=3 from /opt/code-server-debug-args\r\nDAP server listening at: 127.0.0.1:41885\r\n[/tmp/__debug_bin458249886 myargs]\r\n```\r\n\r\n\r\n### Case 03: debug in code-server\r\n\r\n``` bash\r\nStarting: /root/go/bin/dlv-dap dap --check-go-version=false --listen=127.0.0.1:33611 --log-dest=3 from /opt/code-server-debug-args\r\nDAP server listening at: 127.0.0.1:33611\r\n[/tmp/__debug_bin3637673742]\r\n```\r\n\r\n## Logs\r\n\r\n\u003c!--\r\nFirst run code-server with at least debug logging (or trace to be really\r\nthorough) by setting the --log flag or the LOG_LEVEL environment variable. -vvv\r\nand --verbose are aliases for --log trace. For example:\r\n\r\ncode-server --log debug\r\n\r\nOnce this is done, replicate the issue you're having then collect logging\r\ninformation from the following places:\r\n\r\n 1. The most recent files from ~/.local/share/code-server/coder-logs.\r\n 2. The browser console.\r\n 3. The browser network tab.\r\n\r\nAdditionally, collecting core dumps (you may need to enable them first) if\r\ncode-server crashes can be helpful.\r\n-->\r\n\r\n\u003c!--\r\nIf you're having issues with installation please include the installation logs\r\ni.e. the output of `yarn global add code-server` if you installed with `yarn`\r\n -->\r\n\r\n## Screenshot\r\n\r\n\u003c!-- Ideally provide a screenshot, gif, video or screen recording. -->\r\n\r\n## Notes\r\n\r\n\u003c!-- If you can reproduce the issue on vanilla VS Code,\r\nplease file the issue at the VS Code repository instead. -->\r\n\r\nThis issue can be reproduced in VS Code: Yes\r\n","author":{"url":"https://github.com/aiziyuer","@type":"Person","name":"aiziyuer"},"datePublished":"2021-10-16T14:41:11Z","url":"https://github.com/coder/code-server/issues/4362"}
| 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:3d550446-bc7f-c8ff-f300-719c8a2342ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE70:B1B84:26B06A7:313C0E0:6B01CE77 |
| html-safe-nonce | 6943ec218311bc7fb00f49f8bbe6ac8c06773e308117ee8a820142fff0e8db47 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTcwOkIxQjg0OjI2QjA2QTc6MzEzQzBFMDo2QjAxQ0U3NyIsInZpc2l0b3JfaWQiOiIzMzM3OTA1NzkzNzYzNzU3Njg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6c851eb1162f823f4d079ecf757f9395d1c6db1ea751d4d0222a7813c3939a2e |
| hovercard-subject-tag | issue:1028064723 |
| 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/coder/code-server/4362/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fef5367047ad8e060746eeb2e528582b4067aa7e998d9e4bdeea56d62447ff24/coder/code-server/issues/4362 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fef5367047ad8e060746eeb2e528582b4067aa7e998d9e4bdeea56d62447ff24/coder/code-server/issues/4362 |
| og:image:alt | OS/Web Information Web Browser: Google Chrome 92.0.4515.159 Local OS: Windows 10 Professional Workstation Edition 21H1 Remote OS: Red Hat Enterprise Linux release 8.4 (Ootpa) Remote Architecture: x... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aiziyuer |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width