Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Break on postmessage?

I want to be able to break on postmessage in Chrome Developer Tools, but it appears there's no such option:

text

Is it possible to conveniently break on postmessage without specifically searching the line in source code?

Edit: Someone suggested the question is a duplicate of this post: Any good debugger for HTML5 Javascript postMessage API?

The answer features Firebug extension, however, Firebug is no longer available (https://blog.getfirebug.com/)

like image 510
userQWERTY Avatar asked Oct 15 '22 10:10

userQWERTY


1 Answers

If you are using the Browser's console, you can run debug(window.postMessage there to make the execution stop when the next postMessage call is made.

like image 162
pingu Avatar answered Oct 21 '22 04:10

pingu