Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / July 2006

Tip: Looking for answers? Try searching our database.

Debug a JScript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lallous - 29 Jun 2006 07:36 GMT
Hello

How can I develop a script from an IDE and debugging too?

Currently, I use the editor to write the .js file, then use the "cscript
file.js //x" which will run the debugger.

Is there is a way to automate the whole process as if developing an
application and then hitting F10 to start tracing?

--
Elias
Peter Torr (MS) - 01 Jul 2006 20:04 GMT
> Is there is a way to automate the whole process as if developing an
> application and then hitting F10 to start tracing?

In Visual Studio, you can probably do it fairly easily if you have the VC++
project system installed; just define a new build step for JS files that is
CScript... otherwise, you can write a macro to shell out to CScript with the
current filename and bind that macro to a keystroke.

Peter

Signature

Peter Torr - http://blogs.msdn.com/ptorr
HD DVD Program Manager

lallous - 03 Jul 2006 12:14 GMT
Hello Peter,

>> Is there is a way to automate the whole process as if developing an
>> application and then hitting F10 to start tracing?
>
> In Visual Studio, you can probably do it fairly easily if you have the
> VC++ project system installed; just define a new build step for JS files
> that is CScript...

How you mean "define a new build step for JS" ?

Can you please explain more?

>otherwise, you can write a macro to shell out to CScript with the current
>filename and bind that macro to a keystroke.

Do you mean that I will be able to debug a JScript just as simple as one
debugs C++ applications?
(F10 starts the debugger, have workspace, watches, BPs, etc...?)

--
Elias
Peter Torr (MS) - 12 Jul 2006 16:07 GMT
> How you mean "define a new build step for JS" ?
>
> Can you please explain more?

Sorry, I don't know the ins and outs of that. Just that it should be
possible. Try asking in one of the VS customisation newsgroups.

> Do you mean that I will be able to debug a JScript just as simple as one
> debugs C++ applications?
> (F10 starts the debugger, have workspace, watches, BPs, etc...?)

Potentially. You can already have breakpoints and watches today; you just
can't launch cscript from within the IDE by default.

Maybe a macro is the easiest way to do that after all...

Peter

Signature

Peter Torr - http://blogs.msdn.com/ptorr
HD DVD Program Manager


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.