Hi Harsha,
We also developed a debugging framework for JS using V8 inspector. While 
doing that, in between we were also getting this error, but resolved it by 
debugging our code. 
I can send you the websocket messages that we are getting. Maybe that would 
help in some way.
I haven't run your code provided at [https://github.com/hsharsha/v8inspector]. 
Maybe if you need further help, I can check it.


{"id":1,"method":"Log.enable"}

{"id":2,"method":"Log.startViolationsReport","params":{"config":[{"name":"longTask","threshold":200},{"name":"longLayout","threshold":30},{"name":"blockedEvent","threshold":100},{"name":"blockedParser","threshold":-1},{"name":"handler","threshold":150},{"name":"recurringHandler","threshold":50}]}}

{"id":3,"method":"Network.enable","params":{"maxTotalBufferSize":10000000,"maxResourceBufferSize":5000000}}

{"id":4,"method":"Page.enable"}

{"id":5,"method":"Page.getResourceTree"}

{"id":6,"method":"Runtime.enable"}

{"id":7,"method":"Debugger.enable"}

{"id":8,"method":"Debugger.setPauseOnExceptions","params":{"state":"none"}}

{"id":9,"method":"Debugger.setAsyncCallStackDepth","params":{"maxDepth":0}}

{"id":10,"method":"DOM.enable"}

{"id":11,"method":"CSS.enable"}

{"id":12,"method":"Target.setAutoAttach","params":{"autoAttach":true,"waitForDebuggerOnStart":true}}

{"id":13,"method":"Profiler.enable"}

{"id":14,"method":"Profiler.setSamplingInterval","params":{"interval":100}}

{"id":15,"method":"ServiceWorker.enable"}

{"error":{"code":-32601,"message":"'Log.enable' wasn't found"},"id":1}

{"error":{"code":-32601,"message":"'Log.startViolationsReport' wasn't 
found"},"id":2}

{"error":{"code":-32601,"message":"'Network.enable' wasn't found"},"id":3}

{"error":{"code":-32601,"message":"'Page.enable' wasn't found"},"id":4}

{"error":{"code":-32601,"message":"'Page.getResourceTree' wasn't 
found"},"id":5}

{"method":"Runtime.executionContextCreated","params":{"context":{"id":1,"origin":"","name":""}}}

{"id":6,"result":{}}

{"method":"Debugger.scriptParsed","params":{"scriptId":"22","url":"my_Screen1","startLine":0,"startColumn":0,"endLine":19,"endColumn":0,"executionContextId":1,"hash":"FF07566204EF7A37E97781F777DD9282456E48B3","isLiveEdit":false,"sourceMapURL":"","hasSourceURL":false}}

{"id":22,"method":"Debugger.setBreakpointByUrl","params":{"lineNumber":13,"url":"my_Screen1","columnNumber":39,"condition":""}}

{"id":7,"result":{}}

{"id":8,"result":{}}

{"id":9,"result":{}}

{"error":{"code":-32601,"message":"'DOM.enable' wasn't found"},"id":10}

{"error":{"code":-32601,"message":"'CSS.enable' wasn't found"},"id":11}

{"error":{"code":-32601,"message":"'Target.setAutoAttach' wasn't 
found"},"id":12}

{"id":13,"result":{}}

{"id":14,"result":{}}

{"error":{"code":-32601,"message":"'ServiceWorker.enable' wasn't 
found"},"id":15}

{"id":16,"result":{}}

{"error":{"code":-32601,"message":"'Page.setAutoAttachToCreatedPages' 
wasn't found"},"id":17}

{"error":{"code":-32601,"message":"'Emulation.setScriptExecutionDisabled' 
wasn't found"},"id":18}

{"error":{"code":-32601,"message":"'Rendering.setShowViewportSizeOnResize' 
wasn't found"},"id":19}

{"error":{"code":-32601,"message":"'Inspector.enable' wasn't 
found"},"id":20}

{"id":21,"result":{}}

{"id":22,"result":{"breakpointId":"my_Screen1:13:39","locations":[{"scriptId":"22","lineNumber":13,"columnNumber":39}]}}

Please let me know if this is of any help for you.

regards,
Anoop R. S.

On Monday, 8 May 2017 20:01:43 UTC+5:30, Harsha HS wrote:
>
> Hi,
> I am trying to use chrome protocol with chrom-devtools in front end.
> I am not receiving any message from frontend after id:8
>
>  message {"id":1,"method":"Runtime.enable"}
>  message {"id":2,"method":"Debugger.enable"}
>  message 
> {"id":3,"method":"Debugger.setPauseOnExceptions","params":{"state":"none"}}
>  message 
> {"id":4,"method":"Debugger.setAsyncCallStackDepth","params":{"maxDepth":0}}
>  message {"id":5,"method":"Profiler.enable"}
>  message 
> {"id":6,"method":"Profiler.setSamplingInterval","params":{"interval":100}}
>  message 
> {"id":7,"method":"Debugger.setBlackboxPatterns","params":{"patterns":[]}}
> message {"id":8,"method":"Runtime.runIfWaitingForDebugger"}
>
> For each of these messages, I am replying to frontend with {id:xx, 
> result:{}}.
>
> Code is at https://github.com/hsharsha/v8inspector
>
> -Harsha
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to