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

Orderbase #6

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Orderbase #6

wants to merge 9 commits into from

Conversation

sielenk
Copy link

@sielenk sielenk commented Jul 14, 2016

Hi Gert-Jan,
I took the liberty to update your nice test runner to better suit my daily testing needs by adding an "auto attach" feature and a Visual Studio instance selector. To ease the build, I have added the necessary dependencies as NuGet references.
Feel free to pick some of my changes to incorporate them into your main line.
Best regards,
Marvin

@@ -864,7 +864,7 @@ void CMainFrame::test_waiting(const std::wstring& processName, unsigned processI
{
EnQueue([this, processName, processId]()
{
if (this->MessageBox(
if (m_devEnv.AttachDebugger(processId) || this->MessageBox(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djeedjay
This is where the "auto-attach" is integrated: right before the old "Attach debugger ..." dialog is shown.
It still is shown if the auto-attach was unsuccessful.

pRot->GetObject(pMoniker, &pObj);
pMoniker.Release();

DTEPtr pDte = CComQIPtr<EnvDTE::_DTE>(pObj);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a Visual Studio is running and does still implement the rather old interface, this should yield a valid interface pointer for one of the objects in the running object table.

@djeedjay
Copy link
Owner

djeedjay commented Jun 25, 2017 via email

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