Nícholas André
Nícholas André
Thanks for the PR! I'll spend some time reviewing this next week.
This should now be possible since middleware supports Node runtime.
@PypWalters I have been wanting to explore a different idea for testing Gutenberg blocks, but my idea would be to test them in isolation, outside of WordPress by rendering the...
> @nicholasio that sounds a little bit like what @fabiankaegy has worked on extending BlockBook with his preliminary BlockGuide plugin that displays individual blocks outside the editor. Maybe some of...
> @nicholasio With WPA you are already spinning up an environment to run tests on, if we tested blocks outside of WP would we need to spin up something else...
This might be an issue with WSL 2 not forwarding ports properly. I can't provide an in-depth explanation of the issue but here's how I managed to get XDebug working...
This is more of a WSL 2 limitation than an issue with WP Local Docker. For the most part if should work "out of the box"
You would need to perform steps 3 and 4 for every site. Hopefully, this will be fixed in WSL 2 soon.
@jg314 Can you show your launch.json?
FWIW: I think we would not have this problem if we were running the docker daemon inside WSL 2 directly instead of Docker Desktop.