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 / Visual Studio.NET / General / December 2005

Tip: Looking for answers? Try searching our database.

Editing HTA files with VS2005 - debugging

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rich Milburn [MVP] - 29 Dec 2005 15:25 GMT
Hi - I have been creating some HTA files for various Windows deployment and
configuration tasks, and I found that VS2005 does a pretty good job of it.
But I saw a real programmer run through a VB project's code using F8 or
something and he set break points and all that... I would love to be able to
do that with vbscript and HTA files, but I cannot figure out how to do it.
Is it Attach to Process? I'm having a difficult time even finding any info
on Attach to Process, much less editing HTA files in VS.

Thanks
Rich

Signature

Rich Milburn
[MVP - Directory Services]

Rich Milburn [MVP] - 29 Dec 2005 21:58 GMT
I answered my own question... I added a msgbox line at the beginning of the
script so it would pause, added a breakpoint to the next line, and ran the
hta.  Then switched to VS2005, Ctrl+Alt+P to attach to process, choose
mshta.exe process, and click OK on my msgbox.  It stops at the breakpoint,
and I can step through with F11, point at variables and see their values,
etc!  Awesome!  I wish I had figured this out months ago.
Rich
Signature

Rich Milburn
[MVP - Directory Services]

> Hi - I have been creating some HTA files for various Windows deployment
> and configuration tasks, and I found that VS2005 does a pretty good job of
[quoted text clipped - 6 lines]
> Thanks
> Rich

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.