Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This tutorial gives an overview of debugging PHP and JavaScript code simultaneously from within PhpStorm. It covers setting up the Run/Debug Configuration to start the two debuggers at once so we can step into our PHP and JavaScript code at the same time.

Web applications typically consist of both PHP and JavaScript code. PHP code will run on the server side, JavaScript will run in the browser. With PhpStorm, we can easily debug the PHP code to inspect what is happening on the server, modify variables and so on. We can also debug the JavaScript running in the browser by starting a JavaScript debugging session from our IDE. But what if we want to do both at the same time? Sure, we can just start two debugging sessions. But there are some easier ways to get this up and running. Let's see.

Error rendering macro 'toc' : [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "fb" at [row,col {unknown-source}]: [3,308]

Approach 1 - Using PhpStorm built-in webserver

Approach 2 - Using any other webserver

  • No labels