关于VS2008调试Js的方法

    1.Set IE browser Item: "Property"-->"Advanced"-->Remove "disable script debugging(IE)" and "disable script debugging(others)";
    2.Fristly, You can set "break point" in page js block while js function in page or user control;
    3.Secondly, You can't set "break point" directly while debugging js function of web custom control, In VS2008 please as the following steps:
        (1).open the page which contains the js function you want to debug in browser, the "Attach to process" in IDE and select browser process.
        (2). now, you will get new item in the "solution explorer", that means "script documents" and you can get the js file as "WebResource.axd" file. 
        (3). set "break point" ,and do js function operation, you can start debugging.
    
posted @ 2008-04-26 10:43  Lotto  阅读(3200)  评论(2编辑  收藏  举报