Imagine I have a test.html file which contains a jQuery line which calls a test.php file like in the example below:
<html>
<head>
<title>Debug test</title>
<script src="jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready( function()
{
jQuery('#testdiv').load('test.php' );
});
</script>
</head>
<body>
<div id="testdiv">
</div>
</body>
</html>
Now imagine the php file test.php returns a result like in the example below:
<?php
test();
function test()
{
echo "Ok called me!";
}
?>
The two files of course run under a server like Apache.
What I'd like to accomplish would be something like in NetBeans Java EE debug: put a debug breakpoint in test.php fun() function and one in the jquery call inside test.html, then call localhost/test.html and see the first breakpoint inside jquery call being hit and then the second breakpoint inside test.php being hit.
How can I obtain (if possible) this using jetBrains Intellidea WebStorm and PHPStorm? Thank you
, this will listen for incoming connections to the test.php script