Skip to content

Add snippets for debug configurations #1411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 12, 2025

Conversation

matthewbastien
Copy link
Member

@matthewbastien matthewbastien commented Feb 26, 2025

Add three new Swift debug configuration snippets:

  • Launch process
  • Attach by process name
  • Attach by process ID

Also, added a process picker command that can be used to select a process to attach to. The logic is largely the same as the process picker in the vscode-js-debug extension created by Microsoft. It will use available executables based on the current platform to find the list of available processes:

  • Linux: uses the ps executable to list processes
  • macOS: nearly identical to Linux except that the command line options passed to ps are different
  • Windows: uses the PowerShell cmdlet Get-CimInstance to query for processes

I manually tested this on a MacBook Pro running macOS Sequoia, a Windows 11 VM, and an Ubuntu 22.04 VM.

@matthewbastien matthewbastien merged commit e0f9531 into swiftlang:main Mar 12, 2025
13 of 15 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Needs Verification in Swift Extension for Visual Studio Code Mar 12, 2025
@matthewbastien matthewbastien added the needs verification Issue has been fixed, but requires verification before closing label Mar 12, 2025
@matthewbastien matthewbastien deleted the debug-snippets branch March 12, 2025 18:20
@plemarquand
Copy link
Contributor

Verification depends on #1464

@plemarquand
Copy link
Contributor

Verified in a1a6b0f

@plemarquand plemarquand removed the needs verification Issue has been fixed, but requires verification before closing label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants