11/15/2023 0 Comments Phpstorm wordpress live preview![]() ![]() I was under the impression Phpstorm would load whatever was needed (that's why I was being asked to link WP libraries/directories in the first place right?), but I guess no.ġ) How do you plan to debug it if you do not have debugger extension installed? Well that's the thing, I thought "wordpress support" meant exactly that. ![]() Why do you run your theme's index.php file directly ? Where WordPress' own code will be loaded from? Well, I can do all those screenshots but I have tried all options: all clickable items from the Run menu, right click to a file and anything that reads "run" or "debug" etc. Please describe in details (preferably with screenshots) how you "run" the page from PhpStorm. If I try to run WP's main index, I get my website but it's doing it off my XAMPP directly so no debugging possible, no LiveEdit.Ģ) How do you work with WP theme dev? What's your workflow when developing a WP theme? I don't get why within the code editor it understands the whole WP thing but when it runs it only runs that index.php on its own. I don't have however have XDebug installed, is it a must? Yet every time I try to run my theme's index I get this in the browser:įatal error : Call to undefined function get_header() in C:\blabla\wp-content\themes\blabla\index.php on line 2 The whole WP codebase is within the project, I can even control-click stuff correctly from this very simple theme's index.php: I've tried different combinations too, but nothing. The deployment (connection, mappings etc), directories and so on are all set. The WP support activated too (I downloaded the new Phpstorm 8 just to solve my WP problems but not even then): Not to mention using LiveEdit to speed up the layout work. Yet I can't use Phpstorm to debug it, or run it in anyway. I can run it off XAMPP perfectly and use Phpstorm as a mere code editor and keep manually refreshing the browser to see the changes. I have a local XAMPP with an entire WP installation and I'm developing a theme. I'm just trying to learn a usable workflow with those two things. I feel I've seen it all, read it all, tried it all. I've googled this to the point of fatigue. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |