473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Adding pause to execution.

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).
Nov 16 '05 #1
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).

Nov 16 '05 #2

"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
Nov 16 '05 #3
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

Nov 16 '05 #4
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??

Nov 16 '05 #5
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??

Nov 16 '05 #6
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


Nov 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
19
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?
8
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...
2
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...
0
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...
18
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...
0
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...
1
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...
2
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
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
agi2029
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,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.