Cursor disconnected unexpected when debug in wsl

I use VSCode to connect to WSL, and debugging code works fine. However, after I downloaded Cursor which imported with VSCode extension to connect to WSL and debug, the program would pause at the breakpoint for about 5 to 10 seconds and then show “Disconnected unexpectedly.”