Jest with PHPStrom (WSL2) not stop on breakpoint.

Hi Expert,

I found the issue that my debugger on test file doesn't stop on the breakpoint when I run jest debugging.

My project is located in WSL so I setup Node interpreter and other in wsl repo.

My problem is when I set the breakpoint in IDE but debugging not stop on the breakpoint. I tried another solution by setting --inspect or --debug after node options but it not working. Can some one give me an suggestion ?

*Noted : I'm not sure the problem is about wsl or config file because the debugger work normally if I work on project that outside wsl.

Regards,

0

I have this problem with WebStorm.  It is most definitely not fixed in 2020.3.2 production that I installed today.  Breakpoints have checkmarks, but they are not hit while debugging Jest tests.  *Some* of my breakpoints do get hit. Most do not.

-1

Does it work when using local interpreter?

Please share a sample project the issue can be repeated with

0

I don't know what "local interpreter" means.  I have exactly one WebStorm project, our company's web application, which cannot be shared.

0

'Local' means installed in Windows and not WSL; I doubt that your issue has anything to do with WSL debugging, must be smth specific to your project setup

0

My issue already solved following Elena Pogorelova s' related link that recommend to disable js.debugger.use.node.options then Jests work normally and just need to make sure that using node interpreter in WSL environment.

0

请先登录再写评论。