Phpstorm mode JS/simultaneous mode PHP and JS One, Phpstorm mode JavaScript
Create test.html in PHP storm
<! DOCTYPE html>
In the test.html file, right-click
Select Debug ' test.html '.
At this point, the Chorme browser prompts you to install Jetbrain IDE support. Select Install.
This can be in the Phpstorm in the mode JS.
For example, press F8 in the PHP storm to perform the next step
Refer to Debug JavaScript
Second, PHP storm simultaneous mode PHP and JSCreating PHP Files
<! DOCTYPE html>
Where TT is the JS file
var test;var test2;console.log ("Hello world!"); Console.log ("Hello world3!"); function Testclick () { console.log ("test1"); Console.log ("Test2");}
The PHP storm configuration is as follows:
After setting the breakpoint, start the mode.
Reference
Debugging PHP and JavaScript code at the same time in Phpstorm
Phpstorm-mode JavaScript