From 5cb60e5e9dec15c93d3677aa466b2ae3423b8591 Mon Sep 17 00:00:00 2001 From: klugier Date: Sun, 18 Jun 2017 13:54:22 +0000 Subject: [PATCH] .ide IDE now lauches terminal for console apps while debugging using MinGW. Thanks omari for outstanding contribution in this area. #1370 git-svn-id: svn://ultimatepp.org/upp/trunk@11185 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Debuggers/Gdb.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uppsrc/ide/Debuggers/Gdb.cpp b/uppsrc/ide/Debuggers/Gdb.cpp index 269842523..d76795414 100644 --- a/uppsrc/ide/Debuggers/Gdb.cpp +++ b/uppsrc/ide/Debuggers/Gdb.cpp @@ -367,6 +367,10 @@ bool Gdb::Create(One&& _host, const String& exefile, const String& cmdline Cmd("set print repeat 0"); Cmd("set print null-stop"); +#ifdef PLATFORM_WIN32 + Cmd("set new-console on"); +#endif + if(!IsNull(cmdline)) Cmd("set args " + cmdline);