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 / IDE / May 2007

Tip: Looking for answers? Try searching our database.

debug javascript without hitting F5

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TS - 22 May 2007 22:27 GMT
I am successful at debugging JS when i run the app (F5), but if i try to
attach to process, no documents are in Script Explorer and hence i can't
debug JS. what can I do to do this?

thanks
WenYuan Wang [MSFT] - 23 May 2007 06:26 GMT
Hi TS

I assume you are playing with VS 2005, because you debugged JS against
Script Explorer. Please let me know if I misunderstand the version of your
VS. Thanks.

Which process do you attach with in VS, w3wp.exe or iexplorer.exe?
If you want to debug the client side code, you have to attach process
("iexplorer.exe") rather than  w3wp.exe/webdeb.webserver.exe . Otherwise,
Script Explorer cannot find realated code in client side and leave the
document blank.

Please attach process ("iexplorer.exe") to debug your js code and let me
know if you still meet any further issue. I'm glad to assist you.

Have a great day,
Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
TS - 23 May 2007 18:25 GMT
i am using vs 2005. attaching to iexplorer.exe does not make any files
appear in script  explorer, it is empty.

What i do is open a browser and navigate to my website then i attach to
iexplorer and script explorer is empty

> Hi TS
>
[quoted text clipped - 17 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
WenYuan Wang [MSFT] - 24 May 2007 08:13 GMT
Hi TS,
Thanks for your reply.

According to your description, you have attached the correct process in VS
2005. However, the Script Explorer still displayed as blank page.
Another possible reason for such issue is:

Have you unchecked "Disable Script Debugging (Internet Explorer)" and
"Disable Script Debugging (Other)" in your client IE?

Below is a document mentioned about how to debug client javascript in VS
2005.
http://www.developerfusion.co.uk/show/5918/
[Debugging client JavaScript in VS 2005]

In short, the step is as below:
a)    Uncheck "Disable Script Debugging (Internet Explorer)" and "Disable
Script Debugging (Other)" in your client IE.
b)    Close your client IE.
c)    Reopen IE and navigator to your website page which you want to debug
with.
d)    Start VS 2005 and open your website project.
e)    Attach the iexplorer.exe process which displayed your website page.

Hope this helps. Please let me know if you still meet this issue after
following the steps I provided. Have a great day. Thanks
Best Regards,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

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.