Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.64k stars 580 forks source link

Fails to inject ConEmu when debugging from VS2013 via Resharper Run Configuration #697

Open headsphere opened 8 years ago

headsphere commented 8 years ago

Versions

ConEmu build: 160522 x64 OS version: Windows 7 x64 Resharper: 9.2 Visual Studio 12.0.21005.1

Problem description

Resharper has a feature called Run Configurations that enable you to maintain multiple sets of runtime parameters for your Visual Studio projects. Its is an alternative to specifying your VS start-up project (F5). It seems that the way that Resharper starts a debugged project is incompatible with ConEmu, in the respect that a ConEmu window is never injected when run from Resharper. Steps to reproduce are below:

Steps to reproduce

  1. Start Visual Studio 2013
  2. Create new C# console application, with Console.WriteLine("Test")as the body of your Main method, and set a breakpoint on that line
  3. Start with default VS start-up project (F5). Notice that ConEmu is appropriately injected
  4. Create a Resharper Run Configuration via Run Configurations -> Add -> Executable, specifying that path to the build exe and the working directory.
  5. Start the newly created run configuration using the 'Debug' option. Notice that the default console window opens with no ConEmu injected.

The following ProcExplorer screenshot shows two console apps running. ConsoleApplication1 has been started as a VS startup project via F5 and works correctly. ConsoleApplication2 has been started with a Resharper Run Configuration and shows the failure:

procexp

Additional files

I didn't believe any logs are settings files were required as it is very straightforward to reproduce. Please advise if you do need these.

settings-integration

headsphere commented 8 years ago

Sorry I'm not sure what you're referring to. I can't see what that linked pull request has to do with my issue. Is there some mention of this issue in the readme?

Maximus5 commented 8 years ago

[ReSharper](https://github.com/Maximus5/ConEmu/issues?utf8=✓&q=is:issue is:open resharper)

gh-96 of course

headsphere commented 8 years ago

It might be a duplicate. However I don't get any error messages or crashes, so it does seem similar but not sure I would say identical at this point. And to be fair, I have never seen the behaviour in the linked issue

Maximus5 commented 8 years ago

I will try to check this.

headsphere commented 8 years ago

Thanks mate - its pretty easy to verify.