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

Improve AttachVS gem output #3230

Merged
merged 1 commit into from
Jan 5, 2022
Merged

Conversation

MarcoRossignoli
Copy link
Contributor

@MarcoRossignoli MarcoRossignoli commented Dec 25, 2021

I found useful have some output to understand if everything is good.

Let me know @nohwnd

We could ship this gem as nuget+source file with DebuggerHelper.AttachVisualStudioDebugger(string environmentVariable), inner loop for a project that spawns processes would be straightforward to debug(easier than https://devblogs.microsoft.com/devops/introducing-the-child-process-debugging-power-tool/ here we can jump into new repo/vs instance), I'm using it also with TE(I will propose AttachVisualStudioDebugger also there for our stuff) and it's a bit "magic" put bp on datacollector process and that's all 💘 💘 💘

image

@nohwnd
Copy link
Member

nohwnd commented Jan 5, 2022

Sure, I am usually using DebugView++ and the Debug output in VS to observe it, when it does not work as expected. But this might help as well.

@nohwnd nohwnd merged commit 0ab5c22 into microsoft:main Jan 5, 2022
@nohwnd
Copy link
Member

nohwnd commented Jan 5, 2022

we could ship this gem as nuget+source file with

Sure, I tried not to overcomplicate it. But there is room for improvement for sure.

I'm using it also with TE

TE should have it's own service that calls back to VS to attach processes (and is used when you ask testhost.exe to attach VS to it), so maybe that could be used.

@MarcoRossignoli MarcoRossignoli deleted the attachvs branch January 5, 2022 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants