javascript   debug   tool   
开发背景:   
在javascript开发过程中,如果总是使用alert的方式调试程序,在某些简单的程序中是可行的.但是在通常的项目中,通常都很复杂,这种方式已经很难满足,企业级开发的需要。   
鉴于以上初衷,本人自己动手编写了这个javascript调试工具,主要有以下特点:   
1.完全的可插入式思想,对目标程序没有任何负作用。   
2.使用方法极其简单,只需要引入一行JS代码。   
实践证明,使用该工具后,项目中调试JS程序变的极其便利,   
故推而广之,希望使用的朋友能提一些改进的意见。   
出于一些版权考虑该工具的源代码本人暂且没有公布,也对发布的版本做了一些简单的处理。 下载地址:http://jzshmyt.spaces.live.com/

解决方案 »

  1.   

    楼主给的地址无法下载。直接进入gmail的登录页面了。
      

  2.   


    <SPAN class=javascript id=text211009>2007/11/11日 对工具进行了改造: <BR><FONT color=green>&lt;!--1.Relative path 2.debug=false 3.debugInner--&gt; </FONT><BR><FONT color=blue>&lt;SCRIPT language=javascript debug=false src="../JSDebugTool/debugInner.file"&gt;&lt;/script&gt;</FONT> <BR><FONT color=green>&lt;!--1.Web path 2.debug=true 3.debugInner--&gt;</FONT> <BR><FONT color=blue>&lt;SCRIPT language=javascript debug=true src="http://localhost:8080/myproject/JSDebugTool/debugInner.file"&gt;&lt;/script&gt; </FONT><BR><FONT color=green>&lt;!--1.Absolutely path 2.debug=true 3.debugPopup--&gt;</FONT> <BR><FONT color=blue>&lt;SCRIPT language=javascript src="D:/tools/JSDebugTool/debugPopup.file"&gt;&lt;/script&gt; </FONT><BR><BR><FONT color=saddlebrown><BR>※参数注释: <BR>debug=true/false ,不设定debug参数时,默认为true. <BR>true : Javascript debug 功能开启,默认值.(Set "true" by Development) <BR>false : Javascript debug 功能关闭.(Set "false" by Release) <BR>src属性可以设定为绝对路径,也可以设定为相对路径或WEB路径。 <BR>debugInner.file : 采用inner模式debug <BR>debugPopup.file :采用popup模式debug <BR></FONT><BR><BR>详细说明参照:<A class=ilink href="http://jzshmyt.spaces.live.com/" target=_blank><FONT color=#004080>http://jzshmyt.spaces.live.com</FONT></A> <BR>站外下载地址:<A class=ilink href="http://www.91files.com/?BYH6MPW96ZECRA1A7ISA" target=_blank><FONT color=#004080>http://www.91files.com/?BYH6MPW96ZECRA1A7ISA</FONT></A> <BR><BR>输出如下图: <BR><IMG src="http://www.javaworld.com.tw/jute/gallery/a/n/anpzaG15dA==/1194666927540.png" border=0></SPAN>
      

  3.   

    <SPAN class=javascript id=text211009>2007/11/11日 对工具进行了改造: <BR><FONT color=green>&lt;!--1.Relative path 2.debug=false 3.debugInner--&gt; </FONT><BR><FONT color=blue>&lt;SCRIPT language=javascript debug=false src="../JSDebugTool/debugInner.file"&gt;&lt;/script&gt;</FONT> <BR><FONT color=green>&lt;!--1.Web path 2.debug=true 3.debugInner--&gt;</FONT> <BR><FONT color=blue>&lt;SCRIPT language=javascript debug=true src="http://localhost:8080/myproject/JSDebugTool/debugInner.file"&gt;&lt;/script&gt; </FONT><BR><FONT color=green>&lt;!--1.Absolutely path 2.debug=true 3.debugPopup--&gt;</FONT> <BR><FONT color=blue>&lt;SCRIPT language=javascript src="D:/tools/JSDebugTool/debugPopup.file"&gt;&lt;/script&gt; </FONT><BR><BR><FONT color=saddlebrown><BR>※参数注释: <BR>debug=true/false ,不设定debug参数时,默认为true. <BR>true : Javascript debug 功能开启,默认值.(Set "true" by Development) <BR>false : Javascript debug 功能关闭.(Set "false" by Release) <BR>src属性可以设定为绝对路径,也可以设定为相对路径或WEB路径。 <BR>debugInner.file : 采用inner模式debug <BR>debugPopup.file :采用popup模式debug <BR></FONT><BR><BR>详细说明参照:<A class=ilink href="http://jzshmyt.spaces.live.com/" target=_blank><FONT color=#004080>http://jzshmyt.spaces.live.com</FONT></A> <BR>站外下载地址:<A class=ilink href="http://www.91files.com/?BYH6MPW96ZECRA1A7ISA" target=_blank><FONT color=#004080>http://www.91files.com/?BYH6MPW96ZECRA1A7ISA</FONT></A> <BR><BR>输出如下图: <BR><IMG src="http://www.javaworld.com.tw/jute/gallery/a/n/anpzaG15dA==/1194666927540.png" border=0></SPAN>
      

  4.   

    2007/11/11日 对工具进行了改造: 
    <!--1.Relative path 2.debug=false 3.debugInner--> 
    <SCRIPT language=javascript debug=false src="../JSDebugTool/debugInner.file"></script> 
    <!--1.Web path 2.debug=true 3.debugInner--> 
    <SCRIPT language=javascript debug=true src="http://localhost:8080/myproject/JSDebugTool/debugInner.file"></script> 
    <!--1.Absolutely path 2.debug=true 3.debugPopup--> 
    <SCRIPT language=javascript src="D:/tools/JSDebugTool/debugPopup.file"></script> 
    ※参数注释: 
    debug=true/false ,不设定debug参数时,默认为true. 
    true : Javascript debug 功能开启,默认值.(Set "true" by Development) 
    false : Javascript debug 功能关闭.(Set "false" by Release) 
    src属性可以设定为绝对路径,也可以设定为相对路径或WEB路径。 
    debugInner.file : 采用inner模式debug 
    debugPopup.file :采用popup模式debug 
    详细说明参照:http://jzshmyt.spaces.live.com 
    站外下载地址:http://www.91files.com/?BYH6MPW96ZECRA1A7ISA 
      

  5.   

    关于Date.prototype.format()方法: var d= new Date(); 
    out(d.format("yyyy/MM/dd hh:mm:ss S 星期W[q]")); 
    out(d.format("yyyy-MM-dd hh:mm")); 
    out(d.format("yyyy年MM月dd日 周W[q季]")); 
    out(d.format("yyyy/MM/dd 周W[q]")); 输出结果如下: 
      

  6.   

    JSDebugTool最新下载地址和使用说明:http://bbs.51js.com/thread-73741-1-1.html