I want to interactively debug the Perl CGI using Perl debugger on a remote linux machine using VSCode. I tried every possible thing on internet to achieve this but didn't get any success, finally I have come here to get some help.
I want to set a breakpoint in VSCode and send a request from browser and want my code to stop at my breakpoint in VSCode and want to debug my Perl script interactively on remote machine.
I installed Perl debug extension on VSCode, then I installed Perl Language Server on remote machine, then I established the remote ssh connection got success with it, Now I have to setup launch.json but don't know which program I should launch or attach.
I am able to debug any standalone script using launch.json, but I want to send a request from browser to an .pl with some Post values and then I want my script to stop at the breakpoint I have set on VSCode and start debugging it interactively.