google-chrome-devtoolspostmessage

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/)


Solution

  • 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.