我想使用断点调试phantomJS

我想使用断点调试phantomJS,phantomjs,Phantomjs,我使用的是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,但是当我只打开一个指定的网页时,出现了以下错误

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的核心源代码上设置一个断点


您有什么想法吗?

请参阅远程调试功能: (信息太多,无法在此处复制)