Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my application,i am having both javascript files and Dot net files.How can i debug from javascript file to a dot net file.
How will the debugging moves from a javascript file to a linked cs file...
Please help me in this regard.

Thanks in Advance.
Posted
Updated 5-Jun-11 20:46pm
v3
Comments
Sergey Alexandrovich Kryukov 6-Jun-11 1:33am    
What is "debug from... to" supposed to mean?
--SA
[no name] 6-Jun-11 1:35am    
Can you be more specific?

To debug Javascript you may try below.

Add debugger; keyword above the line from where you want to start debugging.

C#
function Test() {

            debugger;
            var abc = 'something';
        }



1) IE - Click on Tools -> Internet Options -> Advanced

Uncheck below options.
a) Disable script debugging (Internet Explorer)
b) Disable script debugging (Other)

2) Firefox - You can debug using Firebug - Script Tab.
 
Share this answer
 
Comments
prem shanker verma 6-Jun-11 3:24am    
Yes right...
I don't know if this is what your looking for, but Mozilla Error Console can view/detect Javascript Errors.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900