PC Review


Reply
Thread Tools Rate Thread

Cannot debug Javascript with VS2008 SP1

 
 
Rory Becker
Guest
Posts: n/a
 
      19th Aug 2008
Just when I need it, my copy of VS2008 seems incapable of debugging javascript
code.

I'm really not sure it ever was. Perhaps I saw this before in VS2005 (which
I recently uninstalled) could this have been it?

I never get a "Script Documents" node in Solution explorer.

Breakpoints are never hit.

I have Enabled script debugging in IE(version 7) and also for "Other" browsers.

I have tried running the code (F5), attaching to process IE, W3WP.exe, Firefox

Nothing... nada....zip .. zilch.

can anyone tell me what I'm doing wrong?

I include my ASPX file here just in case but it's really simple.
-------------------------------------------------------------
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb"
Inherits="WebApplication2._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<script type="text/javascript">
function Somefunction()
{
alert('Hi');
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="Do Stuff" onclick="javascript:Somefunction();"/>
</div>
</form>
</body>
</html>
-------------------------------------------------------------

I have tried setting breakpoints on the "Alert" line and also on the "<Input"
line but still nothing.

I'm running Vista64 with 4Gb ram, VS2008 SP1 (final version), Firefox 3.0,
IE 7

Little help anyone?

--
Rory


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug Unit Tests on Windows Mobile VS2008 Roman Mellenberger Microsoft Dot NET Compact Framework 4 27th Feb 2009 12:43 PM
IIS7, VS2008 debug mode and Cache.Insert thread results NullReferenceException Max2006 Microsoft ASP .NET 3 23rd Feb 2009 07:36 AM
VS2008 Unable to set break point in javascript in .aspx Rick Microsoft ASP .NET 1 14th Jan 2009 04:54 PM
VS2008 / IIS - cannot debug musosdev Microsoft ASP .NET 1 7th Aug 2008 10:24 AM
VS2008 - Localhost debug ... Michael Tissington Microsoft ASP .NET 19 15th May 2008 11:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:22 AM.