关于VS2008调试Js的方法

本文介绍如何在Internet Explorer中禁用脚本调试限制,并详细阐述了两种设置断点调试页面JavaScript块的方法:直接在页面或用户控件上设置及通过特定步骤调试Web定制控件内的JavaScript函数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    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.
    

转载于:https://www.cnblogs.com/Lotto/archive/2008/04/26/1171929.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值