调试javascript代码 [英] debugging javascript code

查看:77
本文介绍了调试javascript代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


在Microsoft Visual Studio .NET 2003中,


如何调试javascript / vbscript代码(客户端)?


谢谢:)

Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)

推荐答案

我通常放置debugging; (或者调试器;,我不记得了)
我的代码中的
语句。执行此语句时,VS.NET将启动

并让您单步执行代码。在IE中,你必须从IE的选项启用脚本

调试。


" John M" < nobody@nospam_please.com>在消息中写道

news:ef ************** @ tk2msftngp13.phx.gbl ...
I usually place the "debugging;" (or "debugger;", I can''t remember)
statement in my code. When this statement is executed, VS.NET will launch
and let you step through your code. In IE, you will have to enable script
debugging from IE''s options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
你好,
在Microsoft Visual Studio .NET 2003中,

如何调试javascript / vbscript代码(客户端)?

谢谢:)
Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)



代码在哪里?

IE中的位置?


我想要一个样品,请。


谢谢:)


" Peter Rilling" < PE *** @ nospam.rilling.net>在消息中写道

news:ed ************** @ TK2MSFTNGP15.phx.gbl ...
Where in code ?
Where in IE ?

I would like a sample, please.

Thanks :)

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
我通常放置 ;调试;" (或者调试器;,我不记得了)我的代码中的语句。执行此语句时,VS.NET将启动
并让您单步执行代码。在IE中,你必须从IE的选项中启用脚本调试。

John M。 < nobody@nospam_please.com>在消息中写道
新闻:ef ************** @ tk2msftngp13.phx.gbl ...
I usually place the "debugging;" (or "debugger;", I can''t remember)
statement in my code. When this statement is executed, VS.NET will launch
and let you step through your code. In IE, you will have to enable script
debugging from IE''s options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
你好,
在Microsoft Visual Studio .NET 2003中,

如何调试javascript / vbscript代码(客户端)?

谢谢:)
Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)




假设您的JS类似于以下内容:


函数MyFunc1(){

//做点什么。


调试器; //这将导致IE在遇到
//并且脚本调试被打开时启动VS.NET

on。

//脚本页面将被加载到

IDE中。


MyFunc2();


// dosomething。< br $>
}


函数MyFunc2(){

//做点什么。

}


" John M" < nobody@nospam_please.com>在消息中写道

news:uk ************** @ TK2MSFTNGP12.phx.gbl ...
Suppose you have your JS something like the following:

function MyFunc1(){
// do something.

debugger; // This will cause IE to launch the VS.NET when
//encountered and script debugging is turned
on.
//The script page will be loaded into the
IDE.

MyFunc2();

// dosomething.
}

function MyFunc2(){
// do something.
}

"John M" <nobody@nospam_please.com> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...
代码在哪里?<在IE的哪个地方?

我想要一个样品。

谢谢:)

Peter Rilling < PE *** @ nospam.rilling.net>在消息中写道
新闻:ed ************** @ TK2MSFTNGP15.phx.gbl ...
Where in code ?
Where in IE ?

I would like a sample, please.

Thanks :)

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
我通常放置调试; ; (或者调试器;,我不记得了)我的代码中的语句。执行此语句时,VS.NET将启动
,让您逐步执行代码。在IE中,你必须从IE的选项中启用
脚本调试。

John M < nobody@nospam_please.com>在消息中写道
新闻:ef ************** @ tk2msftngp13.phx.gbl ...
I usually place the "debugging;" (or "debugger;", I can''t remember)
statement in my code. When this statement is executed, VS.NET will launch and let you step through your code. In IE, you will have to enable script debugging from IE''s options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
你好,
在Microsoft Visual Studio .NET 2003中,

如何调试javascript / vbscript代码(客户端)?

谢谢:)
Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)





这篇关于调试javascript代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆