I used CDT on CDT to record the WebSocket Traffic between Chrome and my embedding app.
{"id":1,"method":"Profiler.enable"}
{"id":2,"method":"Runtime.enable"}
{"id":3,"method":"Debugger.enable"}
{"id":4,"method":"Debugger.setPauseOnExceptions","params":{"state":"none"}}
{"id":5,"method":"Debugger.setAsyncCallStackDepth","params":{"maxDepth":32}}
{"id":6,"method":"Debugger.setBlackboxPatterns","params":{"patterns":[]}}
{"id":7,"method":"Runtime.runIfWaitingForDebugger"}
Sent by my app to chrome:
{"id":1,"result":{}}
{"method":"Runtime.executionContextCreated","params":{"context":{"id":1,"origin":"","name":"MyApp"}}}
{"id":2,"result":{}}
{"method":"Debugger.scriptParsed","params":{"scriptId":"4","url":"func_add.js","startLine":0,"startColumn":0,"endLine":2,"endColumn":2,"executionContextId":1,"hash":"1445a7804cf3405670df7a539876752304d4fa3a","isLiveEdit":false,"sourceMapURL":"","hasSourceURL":false,"isModule":false,"length":37}}
{"id":3,"result":{"debuggerId":"(1FEE5CC1932E43F4AC090457F0333F66)"}}
{"id":4,"result":{}}
{"id":5,"result":{}}
{"id":6,"result":{}}
{"id":7,"result":{}}
Chrome does not send the "Debugger.getScriptSource" request...
Le jeudi 11 avril 2019 16:29:13 UTC+2, DaManuell a écrit :