Firstly I am not after a programatic solution (e.g. Console.ReadLine() or a
Loop construct).
I am trying to find an option in the IDE to pause on exit. For instance with
the SharpDevelop IDE there is a checkbox to do this, but I cant find it in
VS2003 -but I will be surprised if it doesnt have one.
.....So where is it??
Thanks,
Mark.
P.S.
If you are wondering why the programatic construct is not ok, then it is
because I want to pause on exit with solutions in multi languages e.g. C#,
Perl, Python etc, and I dont want to spend time missing about trying to find
the construct (additionally I dont want to have to add code which is only
functional for testing purposes only). 6 6608
Mark,
Can you elaborate a little bit? What do you mean by pause, and what do
you mean by exit? Do you want the IDE to wait before it exits, or do you
want it to wait a little when the program it is debugging exits?
Or is it something else completely that you mean?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Mark Broadbent" <no****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Firstly I am not after a programatic solution (e.g. Console.ReadLine() or a Loop construct).
I am trying to find an option in the IDE to pause on exit. For instance with the SharpDevelop IDE there is a checkbox to do this, but I cant find it in VS2003 -but I will be surprised if it doesnt have one.
....So where is it??
Thanks,
Mark.
P.S. If you are wondering why the programatic construct is not ok, then it is because I want to pause on exit with solutions in multi languages e.g. C#, Perl, Python etc, and I dont want to spend time missing about trying to find the construct (additionally I dont want to have to add code which is only functional for testing purposes only).
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ug**************@TK2MSFTNGP09.phx.gbl... Mark,
Can you elaborate a little bit? What do you mean by pause, and what do you mean by exit? Do you want the IDE to wait before it exits, or do you want it to wait a little when the program it is debugging exits?
He means that the [console] program being started up by the IDE for
debugging purposes should pause (like "Press any key to continue...") before
the console window vanishes and any text output is lost.
-- Barry Kelly
Ahh, ok.
There is nothing like this in the framework. However, now, in VS.NET
2005, console applications have their input/output redirected to another
window in the IDE, which is not cleared when the console program exits.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Barry Kelly" <barry.j.kelly.at.gmail.com> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl... "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:ug**************@TK2MSFTNGP09.phx.gbl... Mark,
Can you elaborate a little bit? What do you mean by pause, and what do you mean by exit? Do you want the IDE to wait before it exits, or do you want it to wait a little when the program it is debugging exits?
He means that the [console] program being started up by the IDE for debugging purposes should pause (like "Press any key to continue...") before the console window vanishes and any text output is lost.
-- Barry Kelly
Start the app using Ctrl-F5 rather than F5, this will hold hte console window open. F5 attaches the debugger so it expects to hit a breakpoint (thats why it doesn't keep the console window open)
Regards
Richard Blewett - DevelopMentor http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<#M**************@TK2MSFTNGP09.phx.gbl>
Firstly I am not after a programatic solution (e.g. Console.ReadLine() or a
Loop construct).
I am trying to find an option in the IDE to pause on exit. For instance with
the SharpDevelop IDE there is a checkbox to do this, but I cant find it in
VS2003 -but I will be surprised if it doesnt have one.
....So where is it??
Thanks Richard that was exactly what I wanted, cheers.
"Richard Blewett [DevelopMentor]" <ri******@develop.com> wrote in message
news:uD**************@TK2MSFTNGP10.phx.gbl... Start the app using Ctrl-F5 rather than F5, this will hold hte console window open. F5 attaches the debugger so it expects to hit a breakpoint (thats why it doesn't keep the console window open)
Regards
Richard Blewett - DevelopMentor http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<#M**************@TK2MSFTNGP09.phx.gbl>
Firstly I am not after a programatic solution (e.g. Console.ReadLine() or a Loop construct).
I am trying to find an option in the IDE to pause on exit. For instance with the SharpDevelop IDE there is a checkbox to do this, but I cant find it in VS2003 -but I will be surprised if it doesnt have one.
....So where is it??
Hi Nicholas, thx (see Richards reply for 2003)
Br,
Mark.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:e1**************@TK2MSFTNGP14.phx.gbl... Ahh, ok.
There is nothing like this in the framework. However, now, in VS.NET 2005, console applications have their input/output redirected to another window in the IDE, which is not cleared when the console program exits.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Barry Kelly" <barry.j.kelly.at.gmail.com> wrote in message news:uN**************@TK2MSFTNGP12.phx.gbl... "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:ug**************@TK2MSFTNGP09.phx.gbl... Mark,
Can you elaborate a little bit? What do you mean by pause, and what do you mean by exit? Do you want the IDE to wait before it exits, or do you want it to wait a little when the program it is debugging exits?
He means that the [console] program being started up by the IDE for debugging purposes should pause (like "Press any key to continue...") before the console window vanishes and any text output is lost.
-- Barry Kelly
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: jdph40 |
last post by:
In Access 2002, I designed a simple database for our Safety department
to enter results of a survey. There are 41 true/false statements. I
have a main form called frmSurvey with a subform called...
|
by: C# Learner |
last post by:
What's a nice way to create a non-blocking pause in execution?
Will I need to use some kind of timer for this, or is there a nicer
way?
|
by: Wim |
last post by:
My GUI application starts a process (a console program) when the user
hits Play. I would like to add an option to pause that process. The
code I've added to detect if the user hit pause/unpause...
|
by: Dave |
last post by:
I have a program that I need the program to temporarly stop and wait for a
response from a piece of equipment. After a set period I want the program to
continue. Like below
--execute lline...
|
by: Arik |
last post by:
Hi,
I would like to disable the 'Pause/Break' key in a console application.
Normally, pressing the 'Pause' key halts the application's execution
and may lead to undesirable processing gaps in my...
|
by: Frank |
last post by:
I'm using Sleep(100) and that works OK.
However, it would be better if my app continued to receive and process
keyboard messages.
How can I pause the execution of code in one routine while...
|
by: steveyjg |
last post by:
I'm trying to call a function that will pause execution for 30 seconds and have a counter timer counting to 30 seconds during this pause. When the counter hits 30 execution of the program will...
|
by: desktop |
last post by:
Is there someway to pause the execution of a program? I have a large
while loop and before it gets started I would like to pause the program
so I can see the output before it gets overwritten by...
|
by: KiranJyothi |
last post by:
Hi All,
I am trying to add buttons and I am not able to see them while running. Please let me know where I am going wrong.
Thanks in advance.
KiranJyothi
<CODE>
//KiranJyothi
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |