[xdebug-general] Re: xdebug

From: Spencer Williams IV <enderandpeter[@]yahoo.com>
Date: Sun, 18 Mar 2018 16:52:26 +0000 (UTC)

    On Sunday, March 18, 2018, 9:38:46 AM MDT, Richard Dunne <richarddunnebsc[@]gmail.com> wrote:
 
 I'm familiar with code breakpoints, not the form handler.  Is there any documentation on that?

On Sun, 18 Mar 2018 at 07:58 Tim Hawkins <tim.thawkins[@]gmail.com> wrote:

You need to set a breakpoint on your form handler with your ide.

On Sun, Mar 18, 2018, 10:52 Richard Dunne <richarddunnebsc[@]gmail.com> wrote:

These are the ini settingszend_extension = "c:\wamp64\bin\php\php7.1.9\ext\php_xdebug-2.6.0-7.1-vc14-x86_64.dll"
xdebug.remote_enable = Onxdebug.remote_autostart = 1xdebug.remote_log = "c:/wamp64/php/php7.1.9"xdebug.profiler_enable = offxdebug.profiler_enable_trigger = Offxdebug.profiler_output_name = cachegrind.out.%t.%pxdebug.profiler_output_dir ="c:/wamp64/tmp"xdebug.show_local_vars=0
"There are handful of nice browser plugins out there where you can enable the sending of the appropriate data to trigger the Xdebug session"This is new information.  I thought once the debugger was set to Listen for Xdebug, that's all that was required.  I added XDebug Helper to Chrome.  Does it required any config within Visual Studio Code or php.ini?  Does XDebug Helper engage XDebug when a form is submitted?  

On Sat, 17 Mar 2018 at 21:49 Spencer Williams <enderandpeter[@]yahoo.com> wrote:

 On 3/16/2018 12:34 PM, Richard Dunne wrote:
 
 How do I get XDebug to start debugging when I submit a form?.  I start the debugger, Step buttons are inactive and nothing happens when I submit a form.  Are there any tutorials for this?   --
  Sincerely,
  Richard Dunne B.Sc.
 

 Did you get it working? What xdebug INI settings have you set? Make sure to at least enable xdebug.remote_enable. Is the web server running directly on the host machine? Or in a VM of some kind? If the latter is the case, then you'll want to make sure xdebug.remote_host is set appropriately, as xdebug.remote_connect_back might not get the appropriate hostname/IP automatically.
 
 Also, you can either set xdebug.remote_autostart or make sure you set a request variable or cookie of the expected name and value when submitting the form. There are handful of nice browser plugins out there where you can enable the sending of the appropriate data to trigger the Xdebug session. And make sure your IDE is listening for Xdebug responses, of course. If anything, you can set xdebug.remote_log to try to get a better idea of what might be going on.
 
 Let us know how things progress...
 
 --Spencer
 

-- 
Sincerely,
Richard Dunne B.Sc.
-- 
Sincerely,
Richard Dunne B.Sc.
Yes, if you set xdebug.remote_autostart you won't have to send the request data. Try setting xdebug.remote_log to a path where it can create a log file. Let us know what it says when you make a request to the server. Also what IDE are you using?
--Spencer
  
Received on Sun Mar 18 2018 - 16:52:43 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST