Title: Update Pyramid debug template to use `python -m pyramid.scripts.pserve` · Issue #2427 · microsoft/vscode-python · GitHub
Open Graph Title: Update Pyramid debug template to use `python -m pyramid.scripts.pserve` · Issue #2427 · microsoft/vscode-python
X Title: Update Pyramid debug template to use `python -m pyramid.scripts.pserve` · Issue #2427 · microsoft/vscode-python
Description: Hi there has been an issue reported before where the "Pyramid" debug option tries to find the wrong pserve on some platforms. #530 The fix was submitted here: f22b451 And it added this block of code to fix it, which uses pserve.exe on Wi...
Open Graph Description: Hi there has been an issue reported before where the "Pyramid" debug option tries to find the wrong pserve on some platforms. #530 The fix was submitted here: f22b451 And it added this block of cod...
X Description: Hi there has been an issue reported before where the "Pyramid" debug option tries to find the wrong pserve on some platforms. #530 The fix was submitted here: f22b451 And it added this bl...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/2427
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update Pyramid debug template to use `python -m pyramid.scripts.pserve`","articleBody":"Hi there has been an issue reported before where the \"Pyramid\" debug option tries to find the wrong pserve on some platforms.\r\n\r\nhttps://github.com/Microsoft/vscode-python/pull/530\r\n\r\nThe fix was submitted here:\r\n\r\nhttps://github.com/Microsoft/vscode-python/pull/530/commits/f22b4510d22a3e7eb01db5509dc81c83b3f12071\r\n\r\nAnd it added this block of code to fix it, which uses pserve.exe on Windows and pserve on everything else:\r\nhttps://github.com/jpfarias/vscode-python/blob/master/src/client/debugger/Main.ts#L217-L224\r\n\r\nI don't believe this fix was sufficient as today using VSCode 1.26.1 and vscode-python 2018.7.1 I was getting launch error `Unable to locate 'pserve.py' required for debugging Pyramid application` \r\n\r\nSolution for me was to just not try to use the \"program\" launch style, but instead use the \"module\" launch style like the \"flask\" example. I think you guys should consider changing the default to this as it is simpler to understand ..... and deprecate the custom DebugOption as it is not required nor simpler:\r\n```\r\n {\r\n \"name\": \"Python: Pyramid\",\r\n \"type\": \"python\",\r\n \"request\": \"launch\",\r\n \"module\": \"pyramid.scripts.pserve\",\r\n \"args\": [\r\n \"${workspaceFolder}/development.ini\"\r\n ],\r\n \"debugOptions\": [\r\n \"RedirectOutput\",\r\n ]\r\n }\r\n\r\n```","author":{"url":"https://github.com/JDeuce","@type":"Person","name":"JDeuce"},"datePublished":"2018-08-22T02:15:30Z","url":"https://github.com/microsoft/vscode-python/issues/2427"}
| 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:90fc76c2-5bf0-d725-a7b5-c6313204bced |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2EA:328E61:8D5BB4:B89F84:6AFE7A01 |
| html-safe-nonce | c2687169bbd4127077d9e3e3262d221d9f607a6971d5cb86f6fad9c56e3ced9b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkVBOjMyOEU2MTo4RDVCQjQ6Qjg5Rjg0OjZBRkU3QTAxIiwidmlzaXRvcl9pZCI6IjEwOTQ5NjY5NDg1ODE1MDU1MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 30b94b87db8a45ea5560a7fd110ad496a5213e0f1a2356425378160959b47bcd |
| hovercard-subject-tag | issue:352775935 |
| 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/2427/issue_layout |
| twitter:image | https://opengraph.githubassets.com/06cd3fe8c29f13da983bb4520834be6ca4aece05d068872924496e375e806fc4/microsoft/vscode-python/issues/2427 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06cd3fe8c29f13da983bb4520834be6ca4aece05d068872924496e375e806fc4/microsoft/vscode-python/issues/2427 |
| og:image:alt | Hi there has been an issue reported before where the "Pyramid" debug option tries to find the wrong pserve on some platforms. #530 The fix was submitted here: f22b451 And it added this block of cod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JDeuce |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width