I've been using Google Chrome to debug my javascript, but then all of a sudden I can no longer place breakpoints. I click on the line number, where I previously clicked to add a breakpoint, but no breakpoint will be added. Sometimes if I click very fast, like a madman, I can see it trying to add breakpoints, but it won't stick.

The only thing I changed was adding JSONView. I uninstalled that, but still can't add breakpoints.

Does anyone have any idea?

An edit: I can place breakpoints on other pages, like StackOverflow, just not the one I'm developing running on localhost.

推荐答案

昨天(2月3日)通过引入用于管理JavaScript断点的新API修复了此错误:http://code.google.com/p/chromium/issues/detail?id=69988

我每晚从http://build.chromium.org/f/chromium/snapshots/下载了最新的Chrome,并且能够成功地在JavaScript中设置断点,这是我使用Chrome当前的stable/beta/dev版本无法做到的.

Hopefully this fix will be incorporated into the next releases of Chrome. Until then, adding debugger; statements to your code is a decent workaround for setting breakpoints.

Json相关问答推荐

您可以使用Jolt对JSON执行OR条件吗

如何使用Aeson解码带有Unicode字符的JSON文件?

Terraform迭代JSON文件以获取键值对

Azure数据工厂-WEB活动输出赢得';t返回JSON

转换为Json时忽略内部对象中的数组

将boost::beast::multibuffer转换为std::istream

将JSON行转换为TSV格式, for each 数组项生成单独的行

通过sql查询读取嵌套Json

使用 JQ 从文件中删除重复的 JSON 块

如何为包含一些固定值并可能具有其他附加值的数组字符串创建数组 json 架构

将 YAML 文件转换为 Python JSON 对象

如何使用 CORS 实现 JavaScript Google Places API 请求

在 bash 中将 CSV 转换为 JSON

在 Rails 3 中处理 JS/ERB 模板中的 JSON

我们可以使用 JSON 作为数据库吗?

C#扁平化json struct

如何对 jq 中的 map 数组中的值求和?

春天:返回@ResponseBodyResponseEntity>

我如何反序列化以杰克逊为单位的时间戳?

无法解析 JSON 文件中的 TAB