Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/420.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Meteor Cordova iOS-未在XCode控制台中显示Javascript日志_Javascript_Xcode_Cordova_Logging_Meteor - Fatal编程技术网

Meteor Cordova iOS-未在XCode控制台中显示Javascript日志

Meteor Cordova iOS-未在XCode控制台中显示Javascript日志,javascript,xcode,cordova,logging,meteor,Javascript,Xcode,Cordova,Logging,Meteor,我目前正在为Objective-C开发一个用于Meteor项目的Cordova插件 出于调试目的,我希望在控制台中显示一些日志。我可以用NSLog()方法记录Objective-C中的文本,但是我不能用console.log()方法从Javascript中记录文本 在大约20次尝试中(大部分时间没有更改任何代码),我在控制台中看到了2次Javascript日志。这两次,在我的日志之前都显示了一个javascript错误 以下是我在日志显示时得到的错误: 第一次 Exception in setT

我目前正在为Objective-C开发一个用于Meteor项目的Cordova插件

出于调试目的,我希望在控制台中显示一些日志。我可以用
NSLog()
方法记录Objective-C中的文本,但是我不能用
console.log()方法从Javascript中记录文本

在大约20次尝试中(大部分时间没有更改任何代码),我在控制台中看到了2次Javascript日志。这两次,在我的日志之前都显示了一个javascript错误

以下是我在日志显示时得到的错误:

第一次

Exception in setTimeout callback: t@http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:176:1000
attach@http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:176:7474
http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:176:7676
o@http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:3:4970
withValue@http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:3:12731
http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:196:3493
http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:3:19555
http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:196:863
w@http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:196:2993
Uncaught Error: TypeError: undefined is not an object (evaluating 'Event.prototype.stopImmediatePropagation'):176:http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js
第二次

Exception in setTimeout callback: t@http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:176:1000
attach@http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:176:7474
http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:176:7676
o@http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:3:4970
withValue@http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:3:12731
http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:196:3493
http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:3:19555
http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:196:863
w@http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js:196:2993
Uncaught Error: TypeError: undefined is not an object (evaluating 'Event.prototype.stopImmediatePropagation'):176:http://meteor.local/d716df1e7be6951129825f5c7a5659ddb8e2eb39.js
但其他时间,我没有收到任何错误和日志。我比较了它工作和不工作的整个日志文件,这两个错误是唯一的区别

有人知道为什么大多数时候我看不到我的Javascript日志吗