aktuelle.kurse/m133/4_Modulinhalte_und_Uebungen/H_xdebug/PHPStorm Turtorial
Harald G. Mueller a63a769c98 muh
2022-02-23 22:44:33 +01:00

1 line
27 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html SYSTEM "about:legacy-compat"><html lang="en-US" data-colors-preset="contrast" data-primary-color="#307FFF"><head><link data-react-helmet="true" rel="canonical" href="https://www.jetbrains.com/help/phpstorm/zero-configuration-debugging.html"><meta charset="UTF-8"> <meta name="built-on" content="2022-02-22T10:29:36.197917"><meta name="build-number" content="6528"> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&amp;l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-5P98');</script><script src="https://resources.jetbrains.com/storage/help-app/v3/analytics.js"></script> <title>Zero-configuration debugging | PhpStorm</title> <link href="https://resources.jetbrains.com/storage/help-app/v3/app.css" rel="stylesheet"> <link rel="icon" href="https://resources.jetbrains.com/storage/products/jetbrains/img/icons/favicon.ico" sizes="any"><!-- 32×32 --><link rel="icon" href="https://resources.jetbrains.com/storage/products/jetbrains/img/icons/icon.svg" type="image/svg+xml"><link rel="apple-touch-icon" href="https://resources.jetbrains.com/storage/products/jetbrains/img/icons/apple-touch-icon.png"><!-- 180×180 --><link rel="manifest" href="https://www.jetbrains.com/site.webmanifest"><meta name="apple-mobile-web-app-title" content="JetBrains"><meta name="application-name" content="JetBrains"><meta name="msapplication-TileColor" content="#000000"><meta name="theme-color" content="#000000"> <meta name="image" content="https://resources.jetbrains.com/storage/products/phpstorm/img/meta/preview.png"><!-- Open Graph --><meta property="og:title" content="Zero-configuration debugging | PhpStorm"/><meta property="og:description" content=""/><meta property="og:image" content="https://resources.jetbrains.com/storage/products/phpstorm/img/meta/preview.png"/><meta property="og:site_name" content="PhpStorm Help"/><meta property="og:type" content="website"/><meta property="og:locale" content="en_US"/><meta property="og:url" content="https://www.jetbrains.com/help/phpstorm/zero-configuration-debugging.html"/><!-- End Open Graph --><!-- Twitter Card --><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content="@phpstorm"><meta name="twitter:title" content="Zero-configuration debugging | PhpStorm"><meta name="twitter:description" content=""><meta name="twitter:creator" content="@phpstorm"><meta name="twitter:image:src" content="https://resources.jetbrains.com/storage/products/phpstorm/img/meta/preview.png"><!-- End Twitter Card --><!-- Schema.org WebPage --><script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebPage", "@id": "https://www.jetbrains.com/help/phpstorm/zero-configuration-debugging.html#webpage", "url": "https://www.jetbrains.com/help/phpstorm/zero-configuration-debugging.html", "name": "Zero-configuration debugging | PhpStorm", "description": "", "image": "https://resources.jetbrains.com/storage/products/phpstorm/img/meta/preview.png", "inLanguage":"en-US" }</script><!-- End Schema.org --><!-- Schema.org WebSite --><script type="application/ld+json"> { "@type": "WebSite", "@id": "https://www.jetbrains.com/help/phpstorm/#website", "url": "https://www.jetbrains.com/help/phpstorm/", "name": "PhpStorm Help" }</script><!-- End Schema.org --></head> <body data-id="Zero-Configuration_Debugging" data-main-title="Zero-configuration debugging" data-article-props="{&quot;seeAlso&quot;:[{&quot;title&quot;:&quot;Procedures&quot;,&quot;links&quot;:[{&quot;url&quot;:&quot;php-debugging-session.html&quot;,&quot;text&quot;:&quot;PHP debugging session&quot;},{&quot;url&quot;:&quot;debugging-with-phpstorm-ultimate-guide.html&quot;,&quot;text&quot;:&quot;Debug with PhpStorm: Ultimate Guide&quot;}]},{&quot;title&quot;:&quot;Reference&quot;,&quot;links&quot;:[{&quot;url&quot;:&quot;servers.html&quot;,&quot;text&quot;:&quot;Servers&quot;},{&quot;url&quot;:&quot;incoming-connection-dialog.html&quot;,&quot;text&quot;:&quot;Incoming Connection dialog&quot;},{&quot;url&quot;:&quot;debug.html&quot;,&quot;text&quot;:&quot;Debug&quot;}]},{&quot;title&quot;:&quot;Web Resources&quot;,&quot;links&quot;:[{&quot;url&quot;:&quot;remote-debugging-via-ssh-tunnel.html&quot;,&quot;text&quot;:&quot;Remote Debugging in PhpStorm via SSH tunnel&quot;},{&quot;url&quot;:&quot;simultaneous-debugging-sessions.html&quot;,&quot;text&quot;:&quot;Debugging PHP and JavaScript code at the same time in\n PhpStorm&quot;},{&quot;url&quot;:&quot;https://blog.jetbrains.com/phpstorm/2013/12/just-in-time-debugging-and-php-exception-breakpoints-with-phpstorm-and-xdebug/&quot;,&quot;text&quot;:&quot;Just-In-Time debugging and PHP Exception Breakpoints with PhpStorm and Xdebug&quot;}]}],&quot;seeAlsoStyle&quot;:&quot;links&quot;}" data-template="article" data-breadcrumbs="Debugging_with_PhpStorm_Ultimate_Guide.xml|Debug with PhpStorm: Ultimate Guide///PHP_Debugging_Session.xml|PHP debugging session" > <div class="wrapper"><main class="panel _main"><header class="panel__header"><div class="container"><h3>PhpStorm 2021.3 Help</h3><div class="shortcuts-switcher"><label for="switch-shortcuts">Keymap:</label><select class="select _shortcuts" height="1" id="switch-shortcuts"> <option data-group="secondary" value="secondary_eclipse" > Eclipse </option> <option data-group="secondary" value="secondary_eclipse_macos" > Eclipse (macOS) </option> <option data-group="secondary" value="secondary_emacs" > Emacs </option> <option data-group="secondary" value="secondary_intellij_idea_classic" > IntelliJ IDEA Classic </option> <option data-group="secondary" value="secondary_macos" selected > macOS </option> <option data-group="secondary" value="secondary_netbeans" > NetBeans </option> <option data-group="secondary" value="secondary_sublime_text" > Sublime Text </option> <option data-group="secondary" value="secondary_sublime_text_macos" > Sublime Text (macOS) </option> <option data-group="secondary" value="secondary_visual_studio" > Visual Studio </option> <option data-group="primary" value="primary_eclipse" > Eclipse </option> <option data-group="primary" value="primary_emacs" > Emacs </option> <option data-group="primary" value="primary_netbeans" > NetBeans </option> <option data-group="primary" value="primary_sublime_text" > Sublime Text </option> <option data-group="primary" value="primary_visual_studio" > Visual Studio </option> <option data-group="primary" value="primary_windows" selected > Windows </option> </select></div><div class="panel-trigger"></div></div></header><section class="panel__content"><div class="container"><article class="article" data-shortcut-switcher="inactive"><h1 data-toc="Zero-Configuration_Debugging" id="Zero-Configuration_Debugging.xml" >Zero-configuration debugging</h1><p id="8a16b480" >In case of <span class="emphasis " id="8e5c46df" >zero-configuration debugging</span>, you do not need to create any debug configuration. Instead, you open the starting page of your PHP application in the browser manually, and then activate the debugging engine from the browser, while PhpStorm listens to incoming debugger connections.</p><section class="chapter" ><h2 id="initiate_session" data-toc="Zero-Configuration_Debugging#initiate_session" >Initiate a debugging session</h2><p id="226c0aad" >Before you start debugging, make sure that you have a debugging engine installed and configured properly. PhpStorm supports debugging with two most popular tools: <a href="https://xdebug.org/download.php" id="2f75f8fe" data-external="true" rel="noopener noreferrer" >Xdebug</a> and <a href="https://www.zend.com/en/products/studio/downloads" id="3928dd02" data-external="true" rel="noopener noreferrer" >Zend Debugger</a>. These tools cannot be used simultaneously because they block each other. To avoid this problem, you need to update the corresponding sections in the <span class="filepath " id="d82b096b" >php.ini</span> file as described in <a href="configuring-xdebug.html" id="62dbe0dc" >Configure Xdebug</a> and <a href="configuring-zend-debugger.html" id="f28a915" >Configure Zend Debugger</a>.</p><p id="ac2d1d05" >To initiating a zero-configuration debugging session, perform these general steps.</p><section class="procedure-steps" ><div class="collapse"><div class="collapse__title" ><h3 id="validate-the-debugging-engine" data-toc="Zero-Configuration_Debugging#validate-the-debugging-engine" >Validate the debugging engine installation</h3></div><div class="collapse__content"><ul class="list"><li class="list__item" id="87ddc187" ><p id="b0a70e8e" >Do any of the following:</p><ul class="list _ul" id="9dd0a8cd" ><li class="list__item" id="314a74ad" ><p id="5172084a" >In the command line, run the <code class="code " >php --version</code> command. The output should list the debugging engine among the installed extensions:</p><div class="tabs" id="4cb8167"><div class="tabs__content" data-gtm="tab" id="xdebug_installed" data-title="Xdebug" ><figure class=" " id="e356b3d9"><img alt="Xdebug extension installed" title="Xdebug extension installed" src="https://resources.jetbrains.com/help/img/idea/2021.3/ps_terminal_xdebug_installed.png" class=" " width="563" height="104"/></figure></div><div class="tabs__content" data-gtm="tab" id="zend_debugger_installed" data-title="Zend debugger" ><figure class=" " id="30cdd566"><img alt="Zend debugger extension installed" title="Zend debugger extension installed" src="https://resources.jetbrains.com/help/img/idea/2021.3/ps_terminal_zend_debugger_installed.png" class=" " width="563" height="91"/></figure></div></div></li><li class="list__item" id="7afa91d2" ><p id="ac19ce68" >Create a <span class="filepath " id="983c7fb5" >php</span> file containing the <code class="code " >phpinfo();</code> function call. Then open this file in the browser. The <code class="code " >phpinfo</code> output should contain the section for your debugging engine:</p><div class="tabs" id="a7327aaf"><div class="tabs__content" data-gtm="tab" id="xdebug_installed_browser" data-title="Xdebug" ><figure class=" " id="803b7396"><img alt="Debugging engine installed" title="Debugging engine installed" src="https://resources.jetbrains.com/help/img/idea/2021.3/ps_xdebug_enabled_browser.png" class=" " width="515" height="110"/></figure></div><div class="tabs__content" data-gtm="tab" id="zend_debugger_installed_browser" data-title="Zend debugger" ><figure class=" " id="f477102f"><img alt="Debugging engine installed" title="Debugging engine installed" src="https://resources.jetbrains.com/help/img/idea/2021.3/ps_zend_debugger_enabled_browser.png" class=" " width="600" height="408"/></figure></div></div></li></ul><aside data-type="note" class="prompt" data-title="" id="6eee531" ><p id="5bbe61fe" >You can also <a href="validating-the-configuration-of-the-debugging-engine.html" id="eb2ecd82" >Validate the Configuration of a Debugging Engine</a> in PhpStorm to make sure that the provided configuration parameters are correct.</p></aside></li></ul></div></div></section><section class="procedure-steps" > <h3 id="enable-listening-connections" data-toc="Zero-Configuration_Debugging#enable-listening-connections" >Enable listening to incoming debugging connections</h3> <ul class="list"><li class="list__item" id="8bf03af" ><p> Toggle the <span class="control " id="a7aa42d1" >Start Listen PHP Debug Connections</span> button <img class="inline-icon-" id="372b7c37" src="https://resources.jetbrains.com/help/img/idea/2021.3/php.icons.debug_listen_off.svg" data-dark-src="https://resources.jetbrains.com/help/img/idea/2021.3/php.icons.debug_listen_off_dark.svg" alt="start listening php debug connections" width="16px" height="16px"/> on the PhpStorm toolbar so that it changes to <img class="inline-icon-" id="6e171301" src="https://resources.jetbrains.com/help/img/idea/2021.3/php.icons.debug_listen_on.svg" data-dark-src="https://resources.jetbrains.com/help/img/idea/2021.3/php.icons.debug_listen_on_dark.svg" alt="stop listening php debug connections" width="16px" height="16px"/>. After that PhpStorm starts listening to the port of the debugging engine used in the current project. Debugging ports are set at the PhpStorm level on the <a href="debug.html" id="3085a1e2" >PHP | Debug</a> page of the <span class="control " id="6f974ac2" >Settings/Preferences</span> dialog (<kbd data-secondary_macos="⌘ ," data-secondary_eclipse="⌃ ⌥ S" data-secondary_emacs="⌃ ⌥ S" data-primary_netbeans="Ctrl+Alt+S" data-secondary_netbeans="⌃ ⌥ S" data-primary_emacs="Ctrl+Alt+S" data-secondary_eclipse_macos="⌘ ," data-primary_visual_studio="Ctrl+Alt+S" data-secondary_visual_studio="⌃ ⌥ S" data-primary_windows="Ctrl+Alt+S" data-secondary_sublime_text_macos="⌘ ," data-secondary_sublime_text="⌃ ⌥ S" data-primary_sublime_text="Ctrl+Alt+S" data-secondary_intellij_idea_classic="⌘ ," data-primary_eclipse="Ctrl+Alt+S" id="4a6a09b2" >Ctrl+Alt+S</kbd>) . <img alt="Start listening to debugging connections" title="Start listening to debugging connections" id="b4612d8f" src="https://resources.jetbrains.com/help/img/idea/2021.3/ps_quick_start_zero_debug_stop_listening_debug_connections_toolbar.png" class=" inline-icon-" width="301" height="28" /></p></li></ul> </section><section class="procedure-steps" > <h3 id="set_breakpoints" data-toc="Zero-Configuration_Debugging#set_breakpoints" >Set breakpoints in your code</h3> <ul class="list"><li class="list__item" id="c0de1676" ><p id="5c0b9ff5" >Set a <a href="using-breakpoints.html" id="3e8d08e5" >breakpoint</a> in your code by doing any of the following:</p><ul class="list _ul" id="f3f7e12e" ><li class="list__item" id="7a24d888" ><p>Click the left gutter area at a line where you want to toggle a breakpoint.</p></li><li class="list__item" id="8aea8c27" ><p>On the main menu, choose <span class="menupath " id="b52ffdb1" >Run | Toggle Line Breakpoint</span>.</p></li><li class="list__item" id="74334fdc" ><p>Press <kbd data-secondary_macos="⌘ F8" data-secondary_eclipse="⌃ ⇧ B" data-secondary_emacs="⌃ F8" data-primary_netbeans="Ctrl+F8" data-secondary_netbeans="⌃ F8" data-primary_emacs="Ctrl+F8" data-secondary_eclipse_macos="⇧ ⌘ B" data-primary_visual_studio="F9" data-secondary_visual_studio="F9" data-primary_windows="Ctrl+F8" data-secondary_sublime_text_macos="⌘ F8" data-secondary_sublime_text="⌃ F8" data-primary_sublime_text="Ctrl+F8" data-secondary_intellij_idea_classic="⌘ F8" data-primary_eclipse="Ctrl+Shift+B" id="67794264" >Ctrl+F8</kbd>.</p></li></ul><figure class=" " id="f4e75543"><img alt="Set breakpoints" title="Set breakpoints" src="https://resources.jetbrains.com/help/img/idea/2021.3/ps_quick_start_set_breakpoints_mac.png" class=" " width="600" height="115"/></figure><p id="2d315926" >Alternatively, select <span class="menupath " id="71ebd90c" >Run | Break at first line in PHP scripts</span> to have the debugger stop as soon as connection with PhpStorm is established (instead of running automatically until the first breakpoint is reached).</p></li></ul> </section><section class="procedure-steps" > <h3 id="activate-debugger-on-server" data-toc="Zero-Configuration_Debugging#activate-debugger-on-server" >Activate debugger on server</h3> <ul class="list"><li class="list__item" id="8529e406" ><p id="e0cd2a06" >To enable starting and stopping the debugging engine from the browser, you need to set a special <code class="code " >GET</code>/<code class="code " >POST</code> or <code class="code " >COOKIE</code> parameter. You can do it manually in the <span class="filepath " id="2446b4e6" >php.ini</span> configuration file, or use one of the available <a href="browser-debugging-extensions.html" id="d5518e84" >browser debugging extensions</a>. If you are using a browser for which an extension is not available, you can <a href="https://www.jetbrains.com/phpstorm/marklets/" id="220767f3" data-external="true" rel="noopener noreferrer" >generate</a> the <span class="emphasis " id="1e6ee610" >Start Debugger</span>/<span class="emphasis " id="bbd1792f" >Stop Debugger</span> bookmarklets and add them to your browser's toolbar.</p><p id="33779739" >Activate the debugging extension in your browser:</p><figure class=" " id="2f11c690"><img alt="Xdebug helper in Chrome" title="Xdebug helper in Chrome" src="https://resources.jetbrains.com/help/img/idea/2021.3/ps_xdebug_helper_chrome.png" class=" " width="520" height="273"/></figure><p id="bcf07ec6" >For more details about setting the parameters manually, see <a href="http://xdebug.org/docs/remote#starting" id="efa75e6f" data-external="true" rel="noopener noreferrer" >Starting the Debugger</a> for <span class="emphasis " id="1f63961c" >Xdebug</span> and <a href="https://zend18.zendesk.com/hc/en-us/articles/204110583-Zend-Debugger-GET-Request-Parameters" id="5998a141" data-external="true" rel="noopener noreferrer" >Zend Debugger GET Request Parameters</a> for <span class="emphasis " id="f931480b" >Zend Debugger</span>.</p></li></ul> </section><section class="procedure-steps" > <h3 id="start-debugging-session" data-toc="Zero-Configuration_Debugging#start-debugging-session" >Start the debugging session</h3> <ol class="list _decimal"><li class="list__item" id="e32b0e14" ><p id="a688469f" >Reload the page in the browser and return to PhpStorm. In the <span class="control " id="d47f48d0" >Incoming Connection From &lt;Debugging Engine&gt;</span> dialog, select the path mappings so that PhpStorm can map the remote files on the web server to the local files in your project. If you have a <a href="configuring-synchronization-with-a-remote-host.html" id="f122aa8" >deployment configuration</a> defined, PhpStorm will offer to configure the mappings based on the paths you've already set in that configuration.</p><figure class=" " id="a60a0753"><img alt="Incoming debugger connection Xdebug" title="Incoming debugger connection Xdebug" src="https://resources.jetbrains.com/help/img/idea/2021.3/ps_incoming_debugger_connection.png" class=" " width="580" height="353"/></figure></li><li class="list__item" id="ec88871f" ><p id="390c7ad6" >After reaching the breakpoint, the debugger is suspended. You can now investigate the application.</p><figure class=" " id="4e077d93"><img alt="Application stopped at breakpoint" title="Application stopped at breakpoint" src="https://resources.jetbrains.com/help/img/idea/2021.3/ps_xdebug_stopped_breakpoint.png" class=" " width="755" height="350"/></figure></li><li class="list__item" id="40a8a6c4" ><p id="64118d4a" >Continue running the program and examine its frames as soon as it is suspended again.</p><ul class="list _bullet" id="98051638" ><li class="list__item" id="140d7682" ><p>To control the program execution manually, step through the code using the commands under the <span class="control " id="d260f55f" >Run</span> menu or toolbar buttons: <span class="menupath " id="40e1d368" >Step Into</span> <kbd data-secondary_macos="F7" data-secondary_eclipse="F5" data-secondary_emacs="F7" data-primary_netbeans="F7" data-secondary_netbeans="F7" data-primary_emacs="F7" data-secondary_eclipse_macos="F5" data-primary_visual_studio="F11" data-secondary_visual_studio="F11" data-primary_windows="F7" data-secondary_sublime_text_macos="F7" data-secondary_sublime_text="F7" data-primary_sublime_text="F7" data-secondary_intellij_idea_classic="F7" data-primary_eclipse="F5" id="fbf85154" >F7</kbd>, <span class="menupath " id="f78f1999" >Step Out</span> <kbd data-secondary_macos="⇧ F8" data-secondary_eclipse="F7" data-secondary_emacs="⇧ F8" data-primary_netbeans="Ctrl+F7" data-secondary_netbeans="⌃ F7" data-primary_emacs="Shift+F8" data-secondary_eclipse_macos="F7" data-primary_visual_studio="Shift+F11" data-secondary_visual_studio="⇧ F11" data-primary_windows="Shift+F8" data-secondary_sublime_text_macos="⇧ F8" data-secondary_sublime_text="⇧ F8" data-primary_sublime_text="Shift+F8" data-secondary_intellij_idea_classic="⇧ F8" data-primary_eclipse="F7" id="98dc96f5" >Shift+F8</kbd>, <span class="menupath " id="897d0c0c" >Step Over</span> <kbd data-secondary_macos="F8" data-secondary_eclipse="F6" data-secondary_emacs="F8" data-primary_netbeans="F8" data-secondary_netbeans="F8" data-primary_emacs="F8" data-secondary_eclipse_macos="F6" data-primary_visual_studio="F10" data-secondary_visual_studio="F10" data-primary_windows="F8" data-secondary_sublime_text_macos="F8" data-secondary_sublime_text="F8" data-primary_sublime_text="F8" data-secondary_intellij_idea_classic="F8" data-primary_eclipse="F6" id="6ff6c885" >F8</kbd>, and others. For more details, see <a href="stepping-through-the-program.html" id="329d49bd" >Step through the program</a>. </p></li><li class="list__item" id="b669a184" ><p>To have the program run automatically up to the next breakpoint, resume the session by choosing <span class="menupath " id="d5663d6c" >Run | Debugging Actions | Resume Program</span> or pressing <kbd data-secondary_macos="⌥ ⌘ R" data-secondary_eclipse="F8" data-secondary_emacs="F9" data-primary_netbeans="F5" data-secondary_netbeans="F5" data-primary_emacs="F9" data-secondary_eclipse_macos="F8" data-primary_visual_studio="F5" data-secondary_visual_studio="F5" data-primary_windows="F9" data-secondary_sublime_text_macos="N/A" data-secondary_sublime_text="N/A" data-primary_sublime_text="N/A" data-secondary_intellij_idea_classic="F9" data-primary_eclipse="F8" id="c0b92df1" >F9</kbd>.</p></li></ul></li></ol> </section></section><section class="chapter" ><h2 id="specify-skipped-scripts" data-toc="Zero-Configuration_Debugging#specify-skipped-scripts" >Specify the scripts to skip requests to</h2><p id="41e1b352" >You can also specify the scripts requests to which you want PhpStorm to ignore during debugging. This approach can be useful, when your application contains scripts that use AJAX. Suppose you have a <span class="filepath " id="2dba3b5" > menu-ajax-script.php </span> that &quot;reloads&quot; a part of your web page. This script works properly so you do not need to debug it. However, this script is still requested during the debugging session. To have incoming connections to this script ignored, add the <span class="filepath " id="3dde00b8" >menu-ajax-script.php</span> script to the <span class="emphasis " id="691dd45a" >skipped paths</span> list. </p><aside data-type="note" class="prompt" data-title="" id="cd4ba3b7" ><p id="4ebafc5b" >If a script is added to <span class="control " id="b49d3023" >Skipped paths</span>, it is only skipped when starting a debugging session for it. To ignore a script when stepping through the program during a debugging session, configure a <a href="stepping-through-the-program.html#step-into" id="3e8db24d" >stepping filter</a>.</p></aside><section class="procedure-steps" id="9ae8ff70" > <ol class="list _decimal"><li class="list__item" id="421e3771" ><p id="ecbd130" > In the <span class="control " id="d2dc604c" >Settings/Preferences</span> dialog (<kbd data-secondary_macos="⌘ ," data-secondary_eclipse="⌃ ⌥ S" data-secondary_emacs="⌃ ⌥ S" data-primary_netbeans="Ctrl+Alt+S" data-secondary_netbeans="⌃ ⌥ S" data-primary_emacs="Ctrl+Alt+S" data-secondary_eclipse_macos="⌘ ," data-primary_visual_studio="Ctrl+Alt+S" data-secondary_visual_studio="⌃ ⌥ S" data-primary_windows="Ctrl+Alt+S" data-secondary_sublime_text_macos="⌘ ," data-secondary_sublime_text="⌃ ⌥ S" data-primary_sublime_text="Ctrl+Alt+S" data-secondary_intellij_idea_classic="⌘ ," data-primary_eclipse="Ctrl+Alt+S" id="f874e50a" >Ctrl+Alt+S</kbd>) , go to <span class="menupath " id="24b2c34f" >PHP | Debug | Skipped Paths</span>.</p></li><li class="list__item" id="e5f4bc7d" ><p id="2266bb3e" >On the <a href="skipped-paths.html" id="7a15eba3" >Skipped Paths</a> page that opens, configure an &quot;ignore list&quot; of scripts and folders with scripts not to be invoked if PhpStorm receives incoming connections to them.</p><ul class="list _bullet" id="d900e600" ><li class="list__item" id="cc0cd9b" ><p>To add a new entry to the list, click the <img class="inline-icon-" id="86e6d05d" src="https://resources.jetbrains.com/help/img/idea/2021.3/icons.general.add.svg" data-dark-src="https://resources.jetbrains.com/help/img/idea/2021.3/icons.general.add_dark.svg" alt="the Add button" width="16px" height="16px"/> or press <kbd data-secondary_macos="⌘ N" data-secondary_eclipse="N/A" data-secondary_emacs="N/A" data-primary_netbeans="Alt+Insert" data-secondary_netbeans="⌃ N" data-primary_emacs="Alt+Insert" data-secondary_eclipse_macos="⌘ N" data-primary_visual_studio="Ctrl+N" data-secondary_visual_studio="⌃ N" data-primary_windows="Alt+Insert" data-secondary_sublime_text_macos="⌘ N" data-secondary_sublime_text="⌃ N" data-primary_sublime_text="Ctrl+N" data-secondary_intellij_idea_classic="⌃ N" data-primary_eclipse="Alt+Insert" id="d41c9df9" >Alt+Insert</kbd>. Then click <img class="inline-icon-" id="cb74f08b" src="https://resources.jetbrains.com/help/img/idea/2021.3/icons.general.openDisk.svg" alt="the Browse button" width="16px" height="16px"/> and in the dialog that opens choose the file or folder to skip connections to.</p></li><li class="list__item" id="75a37106" ><p>To remove an entry from the list, select it and click <img class="inline-icon-" id="ad322047" src="https://resources.jetbrains.com/help/img/idea/2021.3/icons.general.remove.svg" data-dark-src="https://resources.jetbrains.com/help/img/idea/2021.3/icons.general.remove_dark.svg" alt="the Remove button" width="16px" height="16px"/> or press <kbd data-secondary_macos="⌘ ⌦" data-secondary_eclipse="⌥ ⌦" data-secondary_emacs="N/A" data-primary_netbeans="Alt+Delete" data-secondary_netbeans="⌥ ⌦" data-primary_emacs="N/A" data-secondary_eclipse_macos="N/A" data-primary_visual_studio="Ctrl+R, D" data-secondary_visual_studio="⌃ R, D" data-primary_windows="Alt+Delete" data-secondary_sublime_text_macos="⌘ ⌦" data-secondary_sublime_text="⌥ ⌦" data-primary_sublime_text="Alt+Delete" data-secondary_intellij_idea_classic="⌘ ⌦" data-primary_eclipse="Alt+Delete" id="efb2e442" >Alt+Delete</kbd>. The script will be now executed upon receiving requests to it.</p></li></ul></li><li class="list__item" id="4b3eb9c4" ><p>To have PhpStorm inform you every time it receives a request to a script to be skipped, select the <span class="control " id="61e593d4" >Notify about skipped paths</span> checkbox.</p></li></ol> </section></section><div class="last-modified"> Last modified: 27 August 2021</div><div data-feedback-placeholder="true"></div><div class="navigation-links _bottom"> <a class="navigation-links__prev" href="creating-php-web-application-debug-configuration.html">Debug with a PHP web page debug configuration</a> <a class="navigation-links__next" href="zero-configuration-debugging-cli.html">Starting a debugging session from the command line</a> </div></article> </div></section></main></div> <script src="https://resources.jetbrains.com/storage/help-app/v3/app.js"></script> </body></html>