Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8619039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:14:57+00:00 2026-06-12T06:14:57+00:00

Is it possible to set Visual Studio to use a non-standard console when debugging

  • 0

Is it possible to set Visual Studio to use a non-standard console when debugging a Console Application?

I’m not sure what the default console is, it looks just like cmd.exe. I would really love my Console Application to run in ConEmu when I debug.

To be clear, I want to click “Start Debugging” and the process should happen exactly as usual, but instead of bringing up a cmd.exe console, it should bring up a ConEmu console (or whatever).

I’m using Visual Studio 2010 Pro

Closely related to this (unanswered) question: Use Console2 for Visual Studio debugging?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:14:58+00:00Added an answer on June 12, 2026 at 6:14 am

    You’ve mix up terms. The “Windows Console” is not a “cmd.exe”, but special “service” which implemented, for example of Win7, with “conhost.exe”.

    When you start any console application (does not matter cmd, powershell, or your own app) windows starts it in special environment, which may have visible console window. But it is always internal Windows console.

    But! Console emulators may grab this window, hide real console and display their own emulated surface.
    For example, you may start ConEmu with special switches (described on SU, link in comment) and its done.

    Default terminal replacement

    ConEmu has a feature named Default Terminal. If you enable this feature you will get seamless starting up your application from Visual Studio in the ConEmu terminal. The idea is hooking CreateProcess in source application (explorer.exe, vcexpress.exe and so on, delimit them with | in the settings). Read more about that feature in the project wiki.

    You may choose to use existing ConEmu instance or to run new window for your application. And ConEmu can show Press Enter or Esc to close console... message on the console after your application exits (the Always radio). No need to add readline at the end of your program anymore to see the output.

    ConEmu DefTerm settings page

    Changing your application code

    Because it is your own program, you may add, for example, following lines to the head of your main function

    C++ example

    #ifdef _DEBUG
    if (IsDebuggerPresent())
    {
      STARTUPINFO si = {sizeof(si)}; PROCESS_INFORMATION pi = {};
      if (CreateProcess(NULL,
            _T("\"C:\\Program Files\\ConEmu\\ConEmu\\ConEmuC.exe\" /AUTOATTACH"),
            NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi))
      { CloseHandle(pi.hProcess); CloseHandle(pi.hThread); }
    }
    #endif
    

    C# example

    #if DEBUG
    ProcessStartInfo pi = new ProcessStartInfo(@"C:\Program Files\ConEmu\ConEmu\ConEmuC.exe", "/AUTOATTACH");
    pi.CreateNoWindow = false;
    pi.UseShellExecute = false;
    Console.WriteLine("Press Enter after attach succeeded");
    Process.Start(pi);
    Console.ReadLine();
    #endif
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When building a C# application with Visual Studio 2008, is it possible to set
Is is possible to set a light theme during development time in Visual studio
I’m trying to use a Visual Studio Setup Project to deploy a C# Application.
Is it possible to use svcutil to reuse/exclude referenced types, as with visual studio.
I use thrown in visual studio 2005 while debugging a project to get the
Is it possible to change the stub used to implement interfaces in Visual Studio
We are developing a CF application and are making use of the default localization/resource
Possible Duplicate: ASP.Net: DropDownList's SelectedIndexChanged event not firing I created a new ASP.NET default
When I program C/C++ with Visual Studio I often use __asm nop; command to
By default git init creates a folder called '.git'. In the recent Visual Studio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.