Adding pause to execution.

  • Thread starter Thread starter Mark Broadbent
  • Start date Start date
M

Mark Broadbent

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).
 
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 said:
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]
- (e-mail address removed)

Barry Kelly said:
Nicholas Paldino said:
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/<#[email protected]>

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 said:
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]
- (e-mail address removed)

Barry Kelly said:
Nicholas Paldino said:
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
 
Back
Top