René's URL Explorer Experiment


Title: fix(functions): keep an attached debugger's breakpoints working on Python < 3.12 by RaresUiPath · Pull Request #2000 · UiPath/uipath-python · GitHub

Open Graph Title: fix(functions): keep an attached debugger's breakpoints working on Python < 3.12 by RaresUiPath · Pull Request #2000 · UiPath/uipath-python

X Title: fix(functions): keep an attached debugger's breakpoints working on Python < 3.12 by RaresUiPath · Pull Request #2000 · UiPath/uipath-python

Description: Problem On Python 3.11, breakpoints in a function are never hit when it runs with uipath run --debug and VS Code attaches with "Python: Remote Attach" (debugpy). The breakpoint shows as verified, the function runs to the end, and debugpy prints: PYDEV DEBUGGER WARNING: sys.settrace() should not be used when the debugger is being used. This may cause the debugger to stop working correctly. Call Location: File ".../uipath/functions/debug.py", line 350, in _run sys.settrace(self._trace_callback) Cause UiPathDebugFunctionsRuntime.stream() runs the function on a worker thread with its own sys.settrace hook whenever the entrypoint has a call graph. It does this to emit state events for the graph nodes, even when no breakpoints are set. Before Python 3.12, pydevd-based debuggers such as debugpy also trace threads through sys.settrace, so our hook replaces the debugger's on that thread. From Python 3.12, debugpy uses sys.monitoring and isn't affected. Fix If no breakpoints were requested and the current thread is traced by a pydevd-based debugger, skip the call-graph state events. The function then runs without our trace function, in the thread the debugger already traces. Breakpoints requested through the debug bridge still use our trace function, as before. Nothing changes when no debugger is attached, or on Python 3.12+, where sys.gettrace() is empty under debugpy. Coverage's trace function isn't treated as a debugger, so tests under pytest --cov keep today's behavior. The local run command forwards only UPDATED state events, so it loses nothing. A debug bridge that renders the call graph won't get per-function events while a settrace-based debugger is attached. Testing New TestAttachedDebugger tests in tests/functions/test_debug_breakpoints.py: With a pydevd-style trace function installed, that trace function still sees every call of the function. This test fails without the fix. Debug-bridge breakpoints still pause. Call-graph state events are skipped. Only pydevd trace functions are recognized, not coverage's. pytest tests/functions: 65 passed. Full uipath package suite on Python 3.11: 2735 passed. One local failure, test_new.py::TestUipathScaffoldPin, comes from older installed uipath metadata in the local environment and is unrelated. Manual check on Python 3.11 with debugpy 1.8.22: ran uipath run main '{"n": 21}' --debug with a breakpoint in a helper that the entrypoint calls. Before: it never stopped, and debugpy printed 2 warnings. After: it stopped at the breakpoint, printed no warnings, and returned the same output. ruff check, ruff format --check and mypy pass on the changed files. Bumps uipath to 2.15.3. 🤖 Generated with Claude Code

Open Graph Description: Problem On Python 3.11, breakpoints in a function are never hit when it runs with uipath run --debug and VS Code attaches with "Python: Remote Attach" (debugpy). The breakpoint shows as v...

X Description: Problem On Python 3.11, breakpoints in a function are never hit when it runs with uipath run --debug and VS Code attaches with &quot;Python: Remote Attach&quot; (debugpy). The breakpoint sh...

Opengraph URL: https://github.com/UiPath/uipath-python/pull/2000

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:19ef0630-c24c-6d16-faf2-f2883f53ddae
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA8AA:3485E2:545169:552BAD:6AFF5916
html-safe-nonce89e3d8c0b37b49c09e90e29d89b5ddde434d88de6eb6cba8cffd296e37141107
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEFBOjM0ODVFMjo1NDUxNjk6NTUyQkFEOjZBRkY1OTE2IiwidmlzaXRvcl9pZCI6IjYyMTcwNDUxNDM2MzYxMDU0OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9485713724e66f8a7ac5e333c24a0f3742a026b284be696eca5008f8be2782f0
hovercard-subject-tagpull_request:5374863959
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/UiPath/uipath-python/pull/2000/files
twitter:imagehttps://avatars.githubusercontent.com/u/219688603?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/219688603?s=400&v=4
og:image:altProblem On Python 3.11, breakpoints in a function are never hit when it runs with uipath run --debug and VS Code attaches with "Python: Remote Attach" (debugpy). The breakpoint shows as v...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2422ccd4bc783f932948cce4871cb9e0622bab749db07f387c9631b7e6834d1f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/UiPath/uipath-python git https://github.com/UiPath/uipath-python.git
octolytics-dimension-user_id375663
octolytics-dimension-user_loginUiPath
octolytics-dimension-repository_id925171912
octolytics-dimension-repository_nwoUiPath/uipath-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id925171912
octolytics-dimension-repository_network_root_nwoUiPath/uipath-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2a39546baeb98186e651a01d5d7aa6465825eeb1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/UiPath/uipath-python/pull/2000/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FUiPath%2Fuipath-python%2Fpull%2F2000%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FUiPath%2Fuipath-python%2Fpull%2F2000%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=UiPath%2Fuipath-python
Reloadhttps://github.com/UiPath/uipath-python/pull/2000/files
Reloadhttps://github.com/UiPath/uipath-python/pull/2000/files
Reloadhttps://github.com/UiPath/uipath-python/pull/2000/files
UiPathhttps://github.com/UiPath
uipath-pythonhttps://github.com/UiPath/uipath-python
Codehttps://github.com/UiPath/uipath-python
Issues81 (81)https://github.com/UiPath/uipath-python/issues
Pull requests143 (143)https://github.com/UiPath/uipath-python/pulls
Actionshttps://github.com/UiPath/uipath-python/actions
Projectshttps://github.com/UiPath/uipath-python/projects
Security and qualityhttps://github.com/UiPath/uipath-python/security
Insightshttps://github.com/UiPath/uipath-python/insights
Sign up for GitHub https://github.com/signup?return_to=%2FUiPath%2Fuipath-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FUiPath%2Fuipath-python%2Fissues%2Fnew%2Fchoose
RaresUiPathhttps://github.com/RaresUiPath
mainhttps://github.com/UiPath/uipath-python/tree/main
fix/functions-debug-keep-debugger-tracerhttps://github.com/UiPath/uipath-python/tree/fix/functions-debug-keep-debugger-tracer
Conversation 2 https://github.com/UiPath/uipath-python/pull/2000
Commits 1 https://github.com/UiPath/uipath-python/pull/2000/commits
Checks 99 https://github.com/UiPath/uipath-python/pull/2000/checks
Files changed https://github.com/UiPath/uipath-python/pull/2000/files
Please reload this pagehttps://github.com/UiPath/uipath-python/pull/2000/files
fix(functions): keep an attached debugger's breakpoints working on Python < 3.12 https://github.com/UiPath/uipath-python/pull/2000/files#top
Show all changes 1 commit https://github.com/UiPath/uipath-python/pull/2000/files
08a3321 fix(functions): keep an attached debugger's breakpoints working on Py… RaresUiPath Nov 18, 2026 https://github.com/UiPath/uipath-python/pull/2000/commits/08a3321b9b2f71a4b905e67337714c4b98ba23d9
Clear filters https://github.com/UiPath/uipath-python/pull/2000/files
Please reload this pagehttps://github.com/UiPath/uipath-python/pull/2000/files
Please reload this pagehttps://github.com/UiPath/uipath-python/pull/2000/files
pyproject.toml https://github.com/UiPath/uipath-python/pull/2000/files#diff-d0947f8bc36fec38f31b69e8edb3191c9dc2f98ce5b78f360e462e244debd0f1
debug.py https://github.com/UiPath/uipath-python/pull/2000/files#diff-29dc428fa7f87d8c57850dc413164031fd412a3686a3eaec5724213c517b0402
test_debug_breakpoints.py https://github.com/UiPath/uipath-python/pull/2000/files#diff-dc52689387e6db802d42a6fb67d128a0b1c7a55824b743c8d3c7e031189ac82e
uv.lock https://github.com/UiPath/uipath-python/pull/2000/files#diff-efeee29d7c8092034bd6a65cd840950a53caecf98d99b7e5aaaf32a0aa3a05ec
packages/uipath/pyproject.tomlhttps://github.com/UiPath/uipath-python/pull/2000/files#diff-d0947f8bc36fec38f31b69e8edb3191c9dc2f98ce5b78f360e462e244debd0f1
View file https://github.com/UiPath/uipath-python/blob/08a3321b9b2f71a4b905e67337714c4b98ba23d9/packages/uipath/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/UiPath/uipath-python/pull/2000/{{ revealButtonHref }}
https://github.com/UiPath/uipath-python/pull/2000/files#diff-d0947f8bc36fec38f31b69e8edb3191c9dc2f98ce5b78f360e462e244debd0f1
packages/uipath/src/uipath/functions/debug.pyhttps://github.com/UiPath/uipath-python/pull/2000/files#diff-29dc428fa7f87d8c57850dc413164031fd412a3686a3eaec5724213c517b0402
View file https://github.com/UiPath/uipath-python/blob/08a3321b9b2f71a4b905e67337714c4b98ba23d9/packages/uipath/src/uipath/functions/debug.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/UiPath/uipath-python/pull/2000/{{ revealButtonHref }}
https://github.com/UiPath/uipath-python/pull/2000/files#diff-29dc428fa7f87d8c57850dc413164031fd412a3686a3eaec5724213c517b0402
https://github.com/UiPath/uipath-python/pull/2000/files#diff-29dc428fa7f87d8c57850dc413164031fd412a3686a3eaec5724213c517b0402
https://github.com/UiPath/uipath-python/pull/2000/files#diff-29dc428fa7f87d8c57850dc413164031fd412a3686a3eaec5724213c517b0402
https://github.com/UiPath/uipath-python/pull/2000/files#diff-29dc428fa7f87d8c57850dc413164031fd412a3686a3eaec5724213c517b0402
https://github.com/UiPath/uipath-python/pull/2000/files#diff-29dc428fa7f87d8c57850dc413164031fd412a3686a3eaec5724213c517b0402
https://github.com/UiPath/uipath-python/pull/2000/files#diff-29dc428fa7f87d8c57850dc413164031fd412a3686a3eaec5724213c517b0402
packages/uipath/tests/functions/test_debug_breakpoints.pyhttps://github.com/UiPath/uipath-python/pull/2000/files#diff-dc52689387e6db802d42a6fb67d128a0b1c7a55824b743c8d3c7e031189ac82e
View file https://github.com/UiPath/uipath-python/blob/08a3321b9b2f71a4b905e67337714c4b98ba23d9/packages/uipath/tests/functions/test_debug_breakpoints.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/UiPath/uipath-python/pull/2000/{{ revealButtonHref }}
https://github.com/UiPath/uipath-python/pull/2000/files#diff-dc52689387e6db802d42a6fb67d128a0b1c7a55824b743c8d3c7e031189ac82e
https://github.com/UiPath/uipath-python/pull/2000/files#diff-dc52689387e6db802d42a6fb67d128a0b1c7a55824b743c8d3c7e031189ac82e
https://github.com/UiPath/uipath-python/pull/2000/files#diff-dc52689387e6db802d42a6fb67d128a0b1c7a55824b743c8d3c7e031189ac82e
https://github.com/UiPath/uipath-python/pull/2000/files#diff-dc52689387e6db802d42a6fb67d128a0b1c7a55824b743c8d3c7e031189ac82e
https://github.com/UiPath/uipath-python/pull/2000/files#diff-dc52689387e6db802d42a6fb67d128a0b1c7a55824b743c8d3c7e031189ac82e
packages/uipath/uv.lockhttps://github.com/UiPath/uipath-python/pull/2000/files#diff-efeee29d7c8092034bd6a65cd840950a53caecf98d99b7e5aaaf32a0aa3a05ec
View file https://github.com/UiPath/uipath-python/blob/08a3321b9b2f71a4b905e67337714c4b98ba23d9/packages/uipath/uv.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/UiPath/uipath-python/pull/2000/files
Please reload this pagehttps://github.com/UiPath/uipath-python/pull/2000/files
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.