René's URL Explorer Experiment


Title: Updating breakpoints in a nested debugger or in a job debugger results in breakpoints with the same id in the parent being overwritten · Issue #10167 · PowerShell/PowerShell · GitHub

Open Graph Title: Updating breakpoints in a nested debugger or in a job debugger results in breakpoints with the same id in the parent being overwritten · Issue #10167 · PowerShell/PowerShell

X Title: Updating breakpoints in a nested debugger or in a job debugger results in breakpoints with the same id in the parent being overwritten · Issue #10167 · PowerShell/PowerShell

Description: This issue is reproducible in PS 5.1 and 6.2.1 (and presumably 7 preview since the buggy code is still there, although I didn't test that version specifically yet). If you debug a job, you enter a nested debugging session. From within th...

Open Graph Description: This issue is reproducible in PS 5.1 and 6.2.1 (and presumably 7 preview since the buggy code is still there, although I didn't test that version specifically yet). If you debug a job, you enter a ...

X Description: This issue is reproducible in PS 5.1 and 6.2.1 (and presumably 7 preview since the buggy code is still there, although I didn't test that version specifically yet). If you debug a job, you ente...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10167

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Updating breakpoints in a nested debugger or in a job debugger results in breakpoints with the same id in the parent being overwritten","articleBody":"This issue is reproducible in PS 5.1 and 6.2.1 (and presumably 7 preview since the buggy code is still there, although I didn't test that version specifically yet).\r\n\r\nIf you debug a job, you enter a nested debugging session. From within that session, you can set, enable, disable, or remove breakpoints in the job debugger. Setting or removing breakpoints will result in the same changes made to any breakpoints with the corresponding IDs that were set in the parent debugger.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n# Create a job that does some stuff\r\n$job = Start-Job -ScriptBlock {\r\n    1..1000 | ForEach-Object {\r\n        Start-Sleep -Seconds 1\r\n        $_\r\n        Write-Error 'boo'\r\n        Write-Verbose 'Verbose' -Verbose\r\n        $DebugPreference = 'Continue'\r\n        Write-Debug 'Debug'\r\n        Write-Warning 'Warning'\r\n    }\r\n}\r\n\r\n# Set some local breakpoints, and remove one\r\n$bp1 = Set-PSBreakpoint -Command Write-Verbose\r\n$bp2 = Set-PSBreakpoint -Command Get-Date\r\n$bp3 = Set-PSBreakpoint -Variable Home -Mode Read -Action {Write-Host 'Read var'}\r\nRemove-PSBreakpoint -Breakpoint $bp2\r\n\r\n# Have a look at your local breakpoints (these do not impact the running job).\r\nGet-PSBreakpoint\r\n\r\n# Wait for the job and its child job to enter a running state\r\nwhile ($job.State -ne 'Running' -or $job.ChildJobs[0].State -ne 'Running') {\r\n    Start-Sleep -Milliseconds 250\r\n}\r\n\r\n# Debug the job\r\nDebug-Job -Job $job\r\n```\r\n\r\nAt this point you will be in the job debugger. From here, run the following commands:\r\n\r\n```powershell\r\n# Create a bunch of breakpoints\r\n$jbp1 = Set-PSBreakpoint -Variable DebugPreference\r\n$jbp2 = Set-PSBreakpoint -Command Write-Debug\r\n$jbp3 = Set-PSBreakpoint -Command Start-Sleep\r\n\r\n# Have a look at your job breakpoints\r\nGet-PSBreakpoint\r\n\r\n# Disable the second breakpoint\r\nDisable-PSBreakpoint -Breakpoint $jbp2\r\n\r\n# Remove the last breakpoint\r\nRemove-PSBreakpoint -Breakpoint $jbp3\r\n\r\n# Detach your debugger\r\nd\r\n```\r\n\r\nNow you're back in your main runspace, outside of the job. Have a look at your breakpoints by invoking the following command:\r\n\r\n```powershell\r\nGet-PSBreakpoint\r\n```\r\n\r\nThis output shows that:\r\n- breakpoint 0 was overwritten with a completely different breakpoint (the first one that was set in the job)\r\n- breakpoint 1 was re-created (remember that it was removed before debugging the job), and it's not the same as it was before (note that it is not disabled in the parent even though we disabled it in the job debugger because the code behind that simply disables the breakpoint object again, which is already disabled).\r\n- breakpoint 2 was deleted (remember that it was removed from within the job debugging session)\r\n\r\n# Expected behavior\r\n\r\n```none\r\n ID Script                            Line Command                           Variable                          Action\r\n  -- ------                            ---- -------                           --------                          ------\r\n   0                                        Write-Verbose\r\n   2                                                                          Home                              Write-Host 'Read var'\r\n```\r\n\r\n# Actual behavior\r\n\r\n```none\r\n  ID Script                            Line Command                           Variable                          Action\r\n  -- ------                            ---- -------                           --------                          ------\r\n   0                                                                          DebugPreference\r\n   1                                        Write-Debug\r\n```\r\n\r\n# Environment data\r\n\r\n```none\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.2.1\r\nPSEdition                      Core\r\nGitCommitId                    6.2.1\r\nOS                             Microsoft Windows 10.0.17763\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n```\r\n","author":{"url":"https://github.com/KirkMunro","@type":"Person","name":"KirkMunro"},"datePublished":"2019-07-16T00:48:24Z","url":"https://github.com/PowerShell/PowerShell/issues/10167"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ba13d1c6-2ca8-109c-2ccc-a8bce7351897
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD3BE:1F8AF4:633AD:85C18:6AFD48D5
html-safe-nonce0868053cf15adb02a4ef46f1c890b8d4dc3845b1a2b68dd571fa70ad1a6de2dc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0JFOjFGOEFGNDo2MzNBRDo4NUMxODo2QUZENDhENSIsInZpc2l0b3JfaWQiOiI1NjUxMjE3MDU0Mjk1MTg1NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7f934287101e7374bf73cbe489f88049e253e500be1bfdd4bfb7eeb74d50d245
hovercard-subject-tagissue:468394750
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/PowerShell/PowerShell/10167/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f80f6d5895c3d67dddf23115fa2811922a60d2f1faad8c9f07b1ffb0929d542b/PowerShell/PowerShell/issues/10167
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f80f6d5895c3d67dddf23115fa2811922a60d2f1faad8c9f07b1ffb0929d542b/PowerShell/PowerShell/issues/10167
og:image:altThis issue is reproducible in PS 5.1 and 6.2.1 (and presumably 7 preview since the buggy code is still there, although I didn't test that version specifically yet). If you debug a job, you enter a ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKirkMunro
hostnamegithub.com
expected-hostnamegithub.com
Nonebdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
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
release556dd37bb0aceffb25724e151b5d858b3265b40b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/10167#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F10167
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%2FPowerShell%2FPowerShell%2Fissues%2F10167
Sign uphttps://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=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/10167
Reloadhttps://github.com/PowerShell/PowerShell/issues/10167
Reloadhttps://github.com/PowerShell/PowerShell/issues/10167
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests365 (365)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/10167
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/10167
#10503https://github.com/PowerShell/PowerShell/pull/10503
Updating breakpoints in a nested debugger or in a job debugger results in breakpoints with the same id in the parent being overwrittenhttps://github.com/PowerShell/PowerShell/issues/10167#top
#10503https://github.com/PowerShell/PowerShell/pull/10503
https://github.com/PaulHigin
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
WG-Interactive-Debuggingdebugging PowerShell scripthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Interactive-Debugging%22
https://github.com/KirkMunro
Kirk Munro (KirkMunro)https://github.com/KirkMunro
on Jul 16, 2019https://github.com/PowerShell/PowerShell/issues/10167#issue-468394750
Kirk Munro (KirkMunro)https://github.com/KirkMunro
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
on Jul 16, 2019https://github.com/PowerShell/PowerShell/issues/10167#event-2484594010
https://github.com/KirkMunro
Kirk Munro (KirkMunro)https://github.com/KirkMunro
on Aug 21, 2019https://github.com/PowerShell/PowerShell/issues/10167#issuecomment-523636695
debugger.cs, on lines 3227 to 3247https://github.com/PowerShell/PowerShell/blob/a34d094b21057299dfd6501b9df897216e947780/src/System.Management.Automation/engine/debugger/debugger.cs#L3227-L3247
Paul Higinbotham (@PaulHigin)https://github.com/PaulHigin
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Aug 23, 2019https://github.com/PowerShell/PowerShell/issues/10167#issuecomment-524369787
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Aug 23, 2019https://github.com/PowerShell/PowerShell/issues/10167#event-2580155186
https://github.com/KirkMunro
Kirk Munro (KirkMunro)https://github.com/KirkMunro
on Sep 6, 2019https://github.com/PowerShell/PowerShell/issues/10167#issuecomment-528687086
Paul Higinbotham (@PaulHigin)https://github.com/PaulHigin
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Sep 9, 2019https://github.com/PowerShell/PowerShell/issues/10167#issuecomment-529563548
PowerShell/src/System.Management.Automation/engine/debugger/debugger.cshttps://github.com/PowerShell/PowerShell/blob/139cd942b23b18c3220cb57ea2564e6f154c8fef/src/System.Management.Automation/engine/debugger/debugger.cs#L3311
139cd94https://github.com/PowerShell/PowerShell/commit/139cd942b23b18c3220cb57ea2564e6f154c8fef
https://github.com/KirkMunro
Kirk Munro (KirkMunro)https://github.com/KirkMunro
on Sep 9, 2019https://github.com/PowerShell/PowerShell/issues/10167#issuecomment-529574093
Paul Higinbotham (@PaulHigin)https://github.com/PaulHigin
Kirk Munro (KirkMunro)https://github.com/KirkMunro
on Sep 9, 2019https://github.com/PowerShell/PowerShell/issues/10167#event-2619507026
fix PowerShell#10167https://github.com/KirkMunro/PowerShell/commit/192986222de423a674f438d73e6c162828f12c43
PowerShell#10167https://github.com/PowerShell/PowerShell/issues/10167
https://docs.github.com/articles/closing-issues-via-commit-messages
1929862https://github.com/KirkMunro/PowerShell/commit/192986222de423a674f438d73e6c162828f12c43
Ilya (iSazonov)https://github.com/iSazonov
WG-Interactive-Debuggingdebugging PowerShell scripthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Interactive-Debugging%22
on Sep 10, 2019https://github.com/PowerShell/PowerShell/issues/10167#event-2621026432
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#10503https://github.com/PowerShell/PowerShell/pull/10503
on Sep 10, 2019https://github.com/PowerShell/PowerShell/issues/10167#event-2623916792
on Sep 10, 2019https://github.com/PowerShell/PowerShell/issues/10167#event-2623916838
Remove the event handler that was causing breakpoint changes to be er…https://github.com/PowerShell/PowerShell/commit/096a78fbe3fa9997b1a4ab4e8f0014317ac1e3fe
https://docs.github.com/articles/closing-issues-via-commit-messages
096a78fhttps://github.com/PowerShell/PowerShell/commit/096a78fbe3fa9997b1a4ab4e8f0014317ac1e3fe
Travis Plunk (TravisEz13)https://github.com/TravisEz13
on Sep 14, 2019https://github.com/PowerShell/PowerShell/issues/10167#event-2634279985
Remove the event handler that was causing breakpoint changes to be er…https://github.com/TravisEz13/PowerShell/commit/f3a44f7b32c71bc7b8a9970709e8a341fdde063e
https://docs.github.com/articles/closing-issues-via-commit-messages
f3a44f7https://github.com/TravisEz13/PowerShell/commit/f3a44f7b32c71bc7b8a9970709e8a341fdde063e
Thatgfsj (Thatgfsj)https://github.com/Thatgfsj
on Aug 6, 2026https://github.com/PowerShell/PowerShell/issues/10167#event-29091228446
Remove the event handler that was causing breakpoint changes to be er…https://github.com/Thatgfsj-contribs/PowerShell/commit/6c69c823281f948a0d6e52fb87f273c9039464ec
https://docs.github.com/articles/closing-issues-via-commit-messages
6c69c82https://github.com/Thatgfsj-contribs/PowerShell/commit/6c69c823281f948a0d6e52fb87f273c9039464ec
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/10167
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/10167
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
WG-Interactive-Debuggingdebugging PowerShell scripthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Interactive-Debugging%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.