René's URL Explorer Experiment


Title: Debugger spuriously stops on exceptions when using python interpreter from a virtualenv · Issue #490 · microsoft/vscode-python · GitHub

Open Graph Title: Debugger spuriously stops on exceptions when using python interpreter from a virtualenv · Issue #490 · microsoft/vscode-python

X Title: Debugger spuriously stops on exceptions when using python interpreter from a virtualenv · Issue #490 · microsoft/vscode-python

Description: Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 2.7.14 OS and version: MacOs Sierra 10.12.6 Virtualenv version: 15.1.0 Actual behavior With breaking on Uncaught Exceptions option enabled, the debu...

Open Graph Description: Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 2.7.14 OS and version: MacOs Sierra 10.12.6 Virtualenv version: 15.1.0 Actual behavior With breaking on Unca...

X Description: Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 2.7.14 OS and version: MacOs Sierra 10.12.6 Virtualenv version: 15.1.0 Actual behavior With breaking on Unca...

Opengraph URL: https://github.com/microsoft/vscode-python/issues/490

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Debugger spuriously stops on exceptions when using python interpreter from a virtualenv","articleBody":"## Environment data\r\nVS Code version:  1.19.1\r\nPython Extension version:  0.9.1\r\nPython Version:   2.7.14\r\nOS and version:    MacOs Sierra 10.12.6\r\nVirtualenv version: 15.1.0\r\n\r\n## Actual behavior\r\nWith breaking on `Uncaught Exceptions` option enabled, the debugger breaks inside `re` module when using python interpreter coming from a virtual environment created by virtualenv. Hitting `Continue` button has no end, it keeps breaking inside `re` module, that happens to be indirectly imported in the first line of my code, so I can't move forward with debugging without disabling the `Uncaught Exceptions` option.\r\nWhen using the same version of python interpreter, but installed globally, the debugger does not break inside `re` module, it progresses through the code and breaks on first uncaught exception in my code.\r\n\r\n## Expected  behavior\r\nDebugger should behave the same way, no matter if I use virtualenv or system wide version of python.\r\n\r\n## Steps to reproduce:  \r\n- Create and activate virtualenv\r\n```\r\nmbp:~$ virtualenv code/python-venvs/testenv\r\nNew python executable in /Users/leszek/code/python-venvs/testenv/bin/python2.7\r\nAlso creating executable in /Users/leszek/code/python-venvs/testenv/bin/python\r\nInstalling setuptools, pip, wheel...done.\r\n\r\n@mbp:~$ . code/python-venvs/testenv/bin/activate\r\n\r\n(testenv) @mbp:~$ which python\r\n/Users/leszek/code/python-venvs/testenv/bin/python\r\n\r\n(testenv) @mbp:~$ python --version\r\nPython 2.7.14\r\n```\r\n- Create sample code:\r\n```\r\n(testenv) @mbp:~$ echo '#!/Users/leszek/code/python-venvs/testenv/bin/python\r\n\r\nimport json\r\n\r\nprint var' \u003e code/python-venvs/testenv/src/test.py\r\n```\r\n- Open the `src` dir in VSCode, then open the `test.py` file, and click \"Set as interpreter\" above the first line of code to activate the interpreter provided by the virtualenv.\r\n\r\n- Go to the debugger and click on the gear icon to populate `launch.json` with default settings.\r\n\r\n- Select `Uncaught Exceptions` on the list of breakpoints\r\n\r\n- Start the debugger with the `Python` configuration selected.\r\n\r\n- The debugger breaks inside `sre_parse.py` file, instead it should break on the 5th line of code where I'm referencing undefined variable `var`.\r\n\r\n- Keep clicking on Continue or just F5 on the keyboard, the debugger keeps breaking in the same place.\r\n\r\n- In VSCode, change the interpreter to the system wide one, in my case `/usr/local/bin/python2`, installed with `brew`:\r\n```\r\n(testenv) @mbp:~$ deactivate\r\n\r\n@mbp:~$ which python2\r\n/usr/local/bin/python2\r\n\r\n@mbp:~$ /usr/local/bin/python2 --version\r\nPython 2.7.14\r\n```\r\n\r\n- Restart the debugger, it doesn't break inside `sre_parse.py` file, instead it breaks on the 5th line of my code.\r\n\r\n## Logs\r\nOutput from ```Python``` output panel  \r\n```\r\n```   \r\nOutput from ```Console window``` (Help-\u003eDeveloper Tools menu)\r\n```\r\nextensionHost.ts:290 [Extension Host] debugger listening on port 9334\r\nextensionHost.ts:200 [Extension Host] debugger inspector at %cDebugger listening on port 9334.\r\nWarning: This is an experimental feature and could change at any time.\r\nTo start debugging, open the following URL in Chrome:\r\n    chrome-devtools://devtools/bundled/inspector.html?experiments=true\u0026v8only=true\u0026ws=127.0.0.1:9334/739de81d-5f39-40fa-926c-e43873c6758f\r\n\r\nconsole.ts:123 [Extension Host] (node:91038) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.\r\nt.log @ console.ts:123\r\n```\r\n\r\n## Settings\r\n#### User settings:\r\n```\r\n{\r\n    \"editor.rulers\": [79],\r\n    \"editor.fontSize\": 11,\r\n    \"terminal.integrated.fontSize\": 12,\r\n    \"editor.fontFamily\": \"Menlo, Monaco, 'Courier New', monospace\",\r\n    // \"python.venvPath\": \"/Users/leszek/code/python-venvs\",\r\n    \"python.linting.pylintPath\": \"/usr/local/bin/pylint\",\r\n    \"editor.minimap.enabled\": true,\r\n    \"window.zoomLevel\": -1,\r\n    // \"debug.allowBreakpointsEverywhere\": true\r\n}\r\n```\r\n#### Workspace settings:\r\n```\r\n{\r\n    \"python.pythonPath\": \"/Users/leszek/code/python-venvs/testenv/bin/python\"\r\n}\r\n```\r\n#### launch.json\r\n```\r\n{\r\n    // Use IntelliSense to learn about possible attributes.\r\n    // Hover to view descriptions of existing attributes.\r\n    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\r\n    \"version\": \"0.2.0\",\r\n    \"configurations\": [\r\n        {\r\n            \"name\": \"Python\",\r\n            \"type\": \"python\",\r\n            \"request\": \"launch\",\r\n            \"stopOnEntry\": true,\r\n            \"pythonPath\": \"${config:python.pythonPath}\",\r\n            \"program\": \"${file}\",\r\n            \"cwd\": \"${workspaceFolder}\",\r\n            \"env\": {},\r\n            \"envFile\": \"${workspaceFolder}/.env\",\r\n            \"debugOptions\": [\r\n                \"RedirectOutput\"\r\n            ]\r\n        },\r\n        ... skipping the rest here\r\n```","author":{"url":"https://github.com/leszekeljasz","@type":"Person","name":"leszekeljasz"},"datePublished":"2017-12-27T20:11:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/490/vscode-python/issues/490"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:72958d44-b024-ce94-5735-09a3af1e5560
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEA18:DC47A:11FDA91:196307A:6A50A886
html-safe-nonce1033567f18d5e4a2f10170028673c4d3198864120e1133adbdba700664dc1c33
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTE4OkRDNDdBOjExRkRBOTE6MTk2MzA3QTo2QTUwQTg4NiIsInZpc2l0b3JfaWQiOiIzNzk4MTY5MjA4MDQ0NDMxNDk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf18c6dbb982c12a3fa0f18456dec1107ba48935614e06c24c046d54b0d075c3a
hovercard-subject-tagissue:284788467
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/490/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d866a827f93e1265a3bc70c64a79ef5ca860eb3f51fe30e174eeca8ccabbe435/microsoft/vscode-python/issues/490
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d866a827f93e1265a3bc70c64a79ef5ca860eb3f51fe30e174eeca8ccabbe435/microsoft/vscode-python/issues/490
og:image:altEnvironment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 2.7.14 OS and version: MacOs Sierra 10.12.6 Virtualenv version: 15.1.0 Actual behavior With breaking on Unca...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameleszekeljasz
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
turbo-cache-controlno-preview
go-importgithub.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id106462765
octolytics-dimension-repository_nwomicrosoft/vscode-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id49946255
octolytics-dimension-repository_parent_nwoDonJayamanne/pythonVSCode
octolytics-dimension-repository_network_root_id49946255
octolytics-dimension-repository_network_root_nwoDonJayamanne/pythonVSCode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/vscode-python/issues/490#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F490
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F490
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fvscode-python
Reloadhttps://github.com/microsoft/vscode-python/issues/490
Reloadhttps://github.com/microsoft/vscode-python/issues/490
Reloadhttps://github.com/microsoft/vscode-python/issues/490
Please reload this pagehttps://github.com/microsoft/vscode-python/issues/490
microsoft https://github.com/microsoft
vscode-pythonhttps://github.com/microsoft/vscode-python
DonJayamanne/pythonVSCodehttps://github.com/DonJayamanne/pythonVSCode
Notifications https://github.com/login?return_to=%2Fmicrosoft%2Fvscode-python
Fork 1.3k https://github.com/login?return_to=%2Fmicrosoft%2Fvscode-python
Star 4.6k https://github.com/login?return_to=%2Fmicrosoft%2Fvscode-python
Code https://github.com/microsoft/vscode-python
Issues 336 https://github.com/microsoft/vscode-python/issues
Pull requests 31 https://github.com/microsoft/vscode-python/pulls
Discussions https://github.com/microsoft/vscode-python/discussions
Actions https://github.com/microsoft/vscode-python/actions
Models https://github.com/microsoft/vscode-python/models
Wiki https://github.com/microsoft/vscode-python/wiki
Security and quality 2 https://github.com/microsoft/vscode-python/security
Insights https://github.com/microsoft/vscode-python/pulse
Code https://github.com/microsoft/vscode-python
Issues https://github.com/microsoft/vscode-python/issues
Pull requests https://github.com/microsoft/vscode-python/pulls
Discussions https://github.com/microsoft/vscode-python/discussions
Actions https://github.com/microsoft/vscode-python/actions
Models https://github.com/microsoft/vscode-python/models
Wiki https://github.com/microsoft/vscode-python/wiki
Security and quality https://github.com/microsoft/vscode-python/security
Insights https://github.com/microsoft/vscode-python/pulse
likern/vscode-python#4https://github.com/likern/vscode-python/pull/4
Debugger spuriously stops on exceptions when using python interpreter from a virtualenvhttps://github.com/microsoft/vscode-python/issues/490#top
likern/vscode-python#4https://github.com/likern/vscode-python/pull/4
area-debugginghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-debugging%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/leszekeljasz
leszekeljaszhttps://github.com/leszekeljasz
on Dec 27, 2017https://github.com/microsoft/vscode-python/issues/490#issue-284788467
area-debugginghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-debugging%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.