alternative to javascript
-
I am using visual studio .net to write some apps. In the past when I wrote applications I used a lot of java script (I have a lot of scripts). I ahve been inlcuding these scripts in VS whhile they work I find it hard to debug them. For example I can't set break points or watch variables. Is there an alternative? I hope this is not a real stupid question....I'm new to this Brian
-
I am using visual studio .net to write some apps. In the past when I wrote applications I used a lot of java script (I have a lot of scripts). I ahve been inlcuding these scripts in VS whhile they work I find it hard to debug them. For example I can't set break points or watch variables. Is there an alternative? I hope this is not a real stupid question....I'm new to this Brian
You can set breakpoints in javascript. Make sure Tools\Options\Debugging\Just-In-Time has Scripts checked in visual studio. Also make sure Tools\Options\Advanced\Disable Script Debugging is NOT checked in Internet Explorer. If it still won't stop at a breakpoint, start your app, then attach to it from the Running Documents tab (next to solution explorer tab when a web page is running).
-
You can set breakpoints in javascript. Make sure Tools\Options\Debugging\Just-In-Time has Scripts checked in visual studio. Also make sure Tools\Options\Advanced\Disable Script Debugging is NOT checked in Internet Explorer. If it still won't stop at a breakpoint, start your app, then attach to it from the Running Documents tab (next to solution explorer tab when a web page is running).
Thanks for the reply. I tiake it then that there is no substitute for java script in .net? Also I made changes you suggested and still cannont get the debugger to stop at a breakpoint or watch a variable in JS. What I could not do was find the running documents tab. Where can I find this? Brian
-
Thanks for the reply. I tiake it then that there is no substitute for java script in .net? Also I made changes you suggested and still cannont get the debugger to stop at a breakpoint or watch a variable in JS. What I could not do was find the running documents tab. Where can I find this? Brian
The running documents tab only shows up after you start the app with debugging (f5) from visual studio. A new tab called 'Running Documents' shows up in the same area as 'Solution Explorer'. Sometimes I can set a break point in the html view and it will stop there, but most of the time I have to go to the running documents tab. You just double click on the entry on the tab page and it opens an editor where you can set break point like the usual way.