René's URL Explorer Experiment


Title: Path Mapping on Attach request · Issue #2242 · PowerShell/PowerShellEditorServices · GitHub

Open Graph Title: Path Mapping on Attach request · Issue #2242 · PowerShell/PowerShellEditorServices

X Title: Path Mapping on Attach request · Issue #2242 · PowerShell/PowerShellEditorServices

Description: Prerequisites I have written a descriptive issue title. I have searched all issues to ensure it has not already been requested. Summary When debugging a remote runspace the current logic is for PSES to retrieve back a temporary file of a...

Open Graph Description: Prerequisites I have written a descriptive issue title. I have searched all issues to ensure it has not already been requested. Summary When debugging a remote runspace the current logic is for PSE...

X Description: Prerequisites I have written a descriptive issue title. I have searched all issues to ensure it has not already been requested. Summary When debugging a remote runspace the current logic is for PSE...

Opengraph URL: https://github.com/PowerShell/PowerShellEditorServices/issues/2242

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Path Mapping on Attach request","articleBody":"### Prerequisites\n\n- [x] I have written a descriptive issue title.\n- [x] I have searched all [issues](https://github.com/PowerShell/PowerShellEditorServices/issues?q=is%3Aissue) to ensure it has not already been requested.\n\n### Summary\n\nWhen debugging a remote runspace the current logic is for PSES to retrieve back a temporary file of anything hit in a breakpoint and display it VSCode. This can be prone to some bugs and makes debugging a runspace that is not local a lot more difficult than it has to be.\n\nOther languages work around this issue by offering an option to map local path(s) to their remote equivalent and vice versa.\n\nFor example .NET's DAP launch configuration has an option called [sourceFileMap](https://code.visualstudio.com/docs/csharp/debugger-settings#_source-file-map). You can do something like\n\n```json\n{\n    \"sourceFileMap\": {\n        \"C:\\\\remote\\\\path\": \"/home/local/path\"\n    }\n}\n```\n\nPython is similar but calls the option [pathMappings](https://code.visualstudio.com/docs/python/debugging#_remote-script-debugging-with-ssh) and uses a different structure. For example:\n\n```json\n{\n    \"pathMappings\": [\n        {\n            \"localRoot\": \"/home/local/path\",\n            \"remoteRoot\": \"C:\\\\remote\\\\path\"\n        }\n    ]\n}\n```\n\nI would like to extend the attach request in PSES to support a way to map these local \u003c-\u003e remote paths so we can avoid all the psedit and file copying problems.\n\n### Proposed Design\n\nI'm more in favour of the `pathMappings` option that Python uses as the C# one is more geared around to source compilation paths than actual local/remote translations. It is slightly more verbose but it is easier to see what is the local and what is the remote.\n\nAs for the implementation there are a few locations that need to do the translation:\n\n+ [SetLineBreakpointsAsync](https://github.com/PowerShell/PowerShellEditorServices/blob/6bb322ec2150ed341991ffc7db7180db7a49539d/src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs#L129-L173) when translating the local to remote breakpoint path\n+ [FetchStackFramesAsync](https://github.com/PowerShell/PowerShellEditorServices/blob/6bb322ec2150ed341991ffc7db7180db7a49539d/src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs#L779-L892) when translating the remote stack frame file path to local\n+ [StackTraceHandler.Handle](https://github.com/PowerShell/PowerShellEditorServices/blob/6bb322ec2150ed341991ffc7db7180db7a49539d/src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs#L38-L41) needs to update the breakpoint label\n\nThere may be others but I've not yet come across them. The option, if set, should also override the psedit mapping logic as well. Essentially it will treat the paths as local and just translate it to/from the remote paths when needed.","author":{"url":"https://github.com/jborean93","@type":"Person","name":"jborean93"},"datePublished":"2025-07-23T03:42:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2242/PowerShellEditorServices/issues/2242"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:89dd71f1-e6f5-a78e-135e-17af889c2d30
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAE6C:12F67D:11E2C0F:181839E:6A59B844
html-safe-noncedc641d552c26eb62543f8431c0f1224c8918010c3e22c8807720dabd941cfc2c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTZDOjEyRjY3RDoxMUUyQzBGOjE4MTgzOUU6NkE1OUI4NDQiLCJ2aXNpdG9yX2lkIjoiNzI4Nzg1NDU0ODYzOTEzNTgxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac25027172b0f95c792c1ec73dffc43ae30c4678ec0eeea75de91690bc6f5279f5
hovercard-subject-tagissue:3254729208
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/PowerShellEditorServices/2242/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ce25784b2c41310761899936ce448d7999dbba51f5d172eb543bd24369cb4a00/PowerShell/PowerShellEditorServices/issues/2242
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ce25784b2c41310761899936ce448d7999dbba51f5d172eb543bd24369cb4a00/PowerShell/PowerShellEditorServices/issues/2242
og:image:altPrerequisites I have written a descriptive issue title. I have searched all issues to ensure it has not already been requested. Summary When debugging a remote runspace the current logic is for PSE...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejborean93
hostnamegithub.com
expected-hostnamegithub.com
Noneba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShellEditorServices git https://github.com/PowerShell/PowerShellEditorServices.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id36031537
octolytics-dimension-repository_nwoPowerShell/PowerShellEditorServices
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36031537
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShellEditorServices
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
releaseab680789ae4a316cdaf0d5a292a1760140931cc4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShellEditorServices/issues/2242#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShellEditorServices%2Fissues%2F2242
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%2FPowerShell%2FPowerShellEditorServices%2Fissues%2F2242
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=PowerShell%2FPowerShellEditorServices
Reloadhttps://github.com/PowerShell/PowerShellEditorServices/issues/2242
Reloadhttps://github.com/PowerShell/PowerShellEditorServices/issues/2242
Reloadhttps://github.com/PowerShell/PowerShellEditorServices/issues/2242
Please reload this pagehttps://github.com/PowerShell/PowerShellEditorServices/issues/2242
PowerShell https://github.com/PowerShell
PowerShellEditorServiceshttps://github.com/PowerShell/PowerShellEditorServices
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShellEditorServices
Fork 261 https://github.com/login?return_to=%2FPowerShell%2FPowerShellEditorServices
Star 759 https://github.com/login?return_to=%2FPowerShell%2FPowerShellEditorServices
Code https://github.com/PowerShell/PowerShellEditorServices
Issues 127 https://github.com/PowerShell/PowerShellEditorServices/issues
Pull requests 14 https://github.com/PowerShell/PowerShellEditorServices/pulls
Actions https://github.com/PowerShell/PowerShellEditorServices/actions
Security and quality 0 https://github.com/PowerShell/PowerShellEditorServices/security
Insights https://github.com/PowerShell/PowerShellEditorServices/pulse
Code https://github.com/PowerShell/PowerShellEditorServices
Issues https://github.com/PowerShell/PowerShellEditorServices/issues
Pull requests https://github.com/PowerShell/PowerShellEditorServices/pulls
Actions https://github.com/PowerShell/PowerShellEditorServices/actions
Security and quality https://github.com/PowerShell/PowerShellEditorServices/security
Insights https://github.com/PowerShell/PowerShellEditorServices/pulse
#2251https://github.com/PowerShell/PowerShellEditorServices/pull/2251
Path Mapping on Attach requesthttps://github.com/PowerShell/PowerShellEditorServices/issues/2242#top
#2251https://github.com/PowerShell/PowerShellEditorServices/pull/2251
Issue-EnhancementA feature request (enhancement).https://github.com/PowerShell/PowerShellEditorServices/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Needs: TriageMaintainer attention needed!https://github.com/PowerShell/PowerShellEditorServices/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Triage%22
https://github.com/jborean93
jborean93https://github.com/jborean93
on Jul 23, 2025https://github.com/PowerShell/PowerShellEditorServices/issues/2242#issue-3254729208
issueshttps://github.com/PowerShell/PowerShellEditorServices/issues?q=is%3Aissue
sourceFileMaphttps://code.visualstudio.com/docs/csharp/debugger-settings#_source-file-map
pathMappingshttps://code.visualstudio.com/docs/python/debugging#_remote-script-debugging-with-ssh
SetLineBreakpointsAsynchttps://github.com/PowerShell/PowerShellEditorServices/blob/6bb322ec2150ed341991ffc7db7180db7a49539d/src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs#L129-L173
FetchStackFramesAsynchttps://github.com/PowerShell/PowerShellEditorServices/blob/6bb322ec2150ed341991ffc7db7180db7a49539d/src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs#L779-L892
StackTraceHandler.Handlehttps://github.com/PowerShell/PowerShellEditorServices/blob/6bb322ec2150ed341991ffc7db7180db7a49539d/src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs#L38-L41
Issue-EnhancementA feature request (enhancement).https://github.com/PowerShell/PowerShellEditorServices/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Needs: TriageMaintainer attention needed!https://github.com/PowerShell/PowerShellEditorServices/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Triage%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.