Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

helisoncavalheiro's avatar

Debug React components + Inertia in VScode

Hey everyone! I'm struggling to setup a step debugger in the frontend of my Laravel app with Inertia + React + Vite running in Laravel Sail, which is running in WSL2 under Windows 10 OS.

I have already set up XDebug with some port mappings configuration, but I also need to setup a debugger to my frontend. I tried some configurations on my VScode but none of this appear to make sense.

Here is my environment summary:

  • Laravel version: 9.19
  • Sail version: 1.0.1
  • Vite version: 3.0.0
  • React version: 17.0.2

Can anyone help me?

Thanks in advance :D

0 likes
2 replies

Please or to participate in this conversation.