Could not connect debugger to the debugger proxy error when running code on Apache server



I’m trying to debug a javascript code so I run the apache server, set the breakpoints and when I hit the submit form button that calls the javascript function where the breakpoints are located I get a message in red on top of the workspace that reads “Could not connect debugger to the debugger proxy”. There’s no output on the server output terminal or anywhere else. Any ideas what I could be doing wrong? I have managed to use the debugger before without this problem.