It will pop up with a dialog that just says 'enter parameters' : this is where you type in a branch name for whatever branch you're on.Then, once its saved you should be able to highlight any code, right click, and go through the 'external tools' menu like so:.If the project name does not match then you can hard code it like $Prompt$/$FileRelativePath$#L$SelectionStartLine$-$SelectionEndLine$ Then go to preferences => tools => external tools and add one with the fields you see in this screenshot.Start by making a script called "pasteboard" - put it in /usr/local/bin.You can create an "external tool" that will allow you to select code, and have a link to of that code put on your pasteboard for sharing with other people so they can look at what you are looking at. Browser: your favorite browser where the site will be openĬonfiguring PhpStorm to link to 's GitLab.in Server choose the server you just created.click on the yellow plus button -> PHP Web Application.Now place some breakpoints and click on Debug (Shift F9) In Drupal projects, the web path is the same as the path to the source code -> Finish Web path for project root: leave blank.enter the path of your local Drupal code c:\path\to\my\local\code.choose Web Server is installed locally, source files are located under its document root -> Next.File -> New Project from Existing Files.Which is also the DocumentRoot for mylocalsite vhost config in Apache. your local Drupal code is at c:\path\to\my\local\code.your local Drupal site is at (usually it's. So, as a result, we have two assumptions: It is assumed you already have a full Drupal environment which includes: Apache, MySQL, PHP, Drupal and XDebug Congratulations, you can now debug Drupal code, step-by-step!
0 Comments
Leave a Reply. |