[英]Chrome Remote Debugger Get JS Input Values
我正在嘗試使用節點模塊“ chrome-remote-interface”來連接到Google Chrome調試端口。
我能夠連接和攔截所有調試器消息,並且可以在Websocket消息上看到我的函數和返回的值,但是我無法獲得該函數的輸入參數。
例:
{
"callFrameId": "{\"ordinal\":0,\"injectedScriptId\":3}",
"functionName": "capitalizeString",
"functionLocation": {
"scriptId": "74",
"lineNumber": 25,
"columnNumber": 25
},
"location": {
"scriptId": "74",
"lineNumber": 27,
"columnNumber": 23
},
"url": "file:///test.html",
"scopeChain": [
{
"type": "local",
"object": {
"type": "object",
"className": "Object",
"description": "Object",
"objectId": "{\"injectedScriptId\":3,\"id\":55}"
},
"name": "capitalizeString",
"startLocation": {
"scriptId": "74",
"lineNumber": 25,
"columnNumber": 25
},
"endLocation": {
"scriptId": "74",
"lineNumber": 28,
"columnNumber": 1
}
},
{
"type": "global",
"object": {
"type": "object",
"className": "Window",
"description": "Window",
"objectId": "{\"injectedScriptId\":3,\"id\":56}"
}
}
],
"this": {
"type": "object",
"className": "Window",
"description": "Window",
"objectId": "{\"injectedScriptId\":3,\"id\":57}"
},
"returnValue": {
"type": "string",
"value": "ANOMBRE"
}
}
有人知道如何使用“ chrome-remote-interface”獲取JS函數的輸入值嗎?
解決了。 我必須使用“ Runtime.getProperties”來獲得該字段值的承諾。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.