Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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).



Report this thread to moderator Post Follow-up to this message
Old Post
Mark Broadbent
10-20-04 01:57 PM


Re: Adding pause to execution.
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]
- mvp@spam.guard.caspershouse.com

"Mark Broadbent" <nospam@nospam.com> wrote in message
news:%23Mvsx3otEHA.3200@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).
>



Report this thread to moderator Post Follow-up to this message
Old Post
Nicholas Paldino [.NET/C# MVP]
10-20-04 01:57 PM


Re: Adding pause to execution.
"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote in
message news:ug7gsKqtEHA.3200@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



Report this thread to moderator Post Follow-up to this message
Old Post
Barry Kelly
10-20-04 09:07 PM


Re: Adding pause to execution.
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]
- mvp@spam.guard.caspershouse.com

"Barry Kelly" <barry.j.kelly.at.gmail.com> wrote in message
news:uNVURkqtEHA.1276@TK2MSFTNGP12.phx.gbl...
>
> "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote
> in message news:ug7gsKqtEHA.3200@TK2MSFTNGP09.phx.gbl... 
>
> 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
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Nicholas Paldino [.NET/C# MVP]
10-20-04 09:07 PM


Re: Adding pause to execution.
Start the app using Ctrl-F5 rather than F5, this will hold hte console windo
w open. F5 attaches the debugger so it expects to hit a breakpoint (thats wh
y 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/<#Mvsx3ot
EHA.3200@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??


Report this thread to moderator Post Follow-up to this message
Old Post
Richard Blewett [DevelopMentor]
10-20-04 09:07 PM


Re: Adding pause to execution.
Thanks Richard that was exactly what I wanted, cheers.


"Richard Blewett [DevelopMentor]" <richardb@develop.com> wrote in message
news:uD5wryqtEHA.1356@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/<#Mvsx3
otEHA.3200@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??
>



Report this thread to moderator Post Follow-up to this message
Old Post
Mark Broadbent
10-20-04 09:07 PM


Re: Adding pause to execution.
Hi Nicholas, thx (see Richards reply for 2003)

Br,

Mark.


"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote in
message news:e1ur9uqtEHA.3200@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]
>               - mvp@spam.guard.caspershouse.com
>
> "Barry Kelly" <barry.j.kelly.at.gmail.com> wrote in message
> news:uNVURkqtEHA.1276@TK2MSFTNGP12.phx.gbl... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Mark Broadbent
10-20-04 09:07 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Studio archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:55 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.