• I have started to add blocks functionality to a plug-in of mine, but I keep getting an error where the actual rendering differs from the actual rendering.

    I am using a fairly complex route to get from the Edit to the Save interface and back, and I do not use JSX, so it is tricky to figure out what is going wrong.

    Does anyone have a handy tip for how to debug blocks?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Bet Hannon

    (@bethannon1)

    I assume that have WP_DEBUG and DEBUG_SCRIPTS enabled, and are using normal React debugging tools and conventions?

    Thread Starter hatesspam

    (@hatesspam)

    Well, I have never used React before. Does the fact that WordPress uses wrappers not interfere with React debugging tools?

    I have WP_DEBUG enabled, did not know about DEBUG_SCRIPTS.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Any tips for debugging blocks / Gutenberg?’ is closed to new replies.