Skip to content
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

[Feature]: Attach and Debug Documentation #489

Open
Grant-Archibald-MS opened this issue Nov 25, 2024 · 1 comment
Open

[Feature]: Attach and Debug Documentation #489

Grant-Archibald-MS opened this issue Nov 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Grant-Archibald-MS
Copy link
Contributor

Is your feature request related to a problem? Please describe.

The issue would like to debug samples when using a build from source strategy. Include Visual Studio Code launch settings to allow the process to be attached to. Describe the -w True argument that will wait for the process to be attached so debugging can occur.

Describe the solution you'd like

Add launch.json similar to the following to the repository for users using Visual Studio Code

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Attach to Process",
      "type": "coreclr",
      "request": "attach",
      "processId": "${command:pickProcess}"
    }
  ]
}

Wait Command Line

Discuss the -w True Argument:
The -w True argument will wait for the process to be attached so you can debug it. This is useful for ensuring that the process does not start executing before the debugger is attached.

Describe alternatives you've considered

No response

Additional context?

No response

@Grant-Archibald-MS Grant-Archibald-MS added the enhancement New feature or request label Nov 25, 2024
@Grant-Archibald-MS
Copy link
Contributor Author

Extend the code to break into debugger if the current process has been attached to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant