【问题标题】:I want to debug phantomJS using a breakpoint我想使用断点调试 phantomJS
【发布时间】:2017-05-24 13:40:57
【问题描述】:

我用的是phantomjs,但是当我只打开一个指定的网页时,出现如下错误。

ReferenceError: Can't find variable: CollectGarbage

  undefined:1
  :0 in openUrl
  phantomjs://platform/webpage.js:291 in open
  phantomjs://code/memory_test.js:77
  phantomjs://code/memory_test.js:94

但是我检查了我的代码很久了,不知道是什么原因。

于是我尝试调试phantomJS的核心源码,但是因为我一个个写了'printf'或者'console.log',实在是太累了,所以想在的核心源码上设置断点phantomJS。

你有什么想法吗?

【问题讨论】:

    标签: phantomjs


    【解决方案1】:

    查看远程调试功能:http://phantomjs.org/troubleshooting.html#remote-debugging (此处信息过多,无法复制)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-04
      • 2015-03-06
      • 1970-01-01
      • 1970-01-01
      • 2013-07-08
      相关资源
      最近更新 更多