I cannot get Javascript to debug work for my ASP.NET MVC application, although I can use the traditional ASP.NET WebForm application.
I followed these steps to uncheck the "Disable Script Debugging" checkboxes for IE and others.
when I add a simple function to display a warning both in the site.master file and in any content view, the breakpoint does not work.
Am I missing something obvious or do I need to use an external debugging tool like FireBug?
By the way, I am using Visual Studio Web Developer Express 2008.
THX
function test() { debugger; alert("hi"); }
I don’t know if this will work with the expression, but when IE gets into the “debugger” command, it asks me if I want to debug using any tool as well. Visual Studio is on the list of options presented to me.
I do not know if an express will be present for you.
the "debugger" also works with firebug.
I had this problem today. The debugger does not know where the script files are if you include them in the mvc view.
Put them in an external file .js(say, default.js) in the scripts folder, add the script tag to site.master, and then you hit breakpoints.
.js
default.js
VS JS , ... , Firebug. , , VS.
javascript MVC. VS2008 javascript aspx, .js . debugJscript.js, . aspx. javascript , javascript aspx, .
.js, :
<script type="text/javascript" src="../../Scripts/DebugJScript.js?<%=DateTime.Now %>" ></script>
VS.Net Express, VS.Net Standard Debug "Attach to process". : , Script. Script, . IDE . script , , , .
MS Express, , , $$$ ( ). , ?:)