Subject: Re: [xdebug-general] Re: xdebug
Date: Sun, 18 Mar 2018 19:57:33 +0000 (UTC)
From: Spencer Williams IV <enderandpeter[@]yahoo.com>
To: Richard Dunne <richarddunnebsc[@]gmail.com>
On Sunday, March 18, 2018, 1:31:50 PM MDT, Richard Dunne
<richarddunnebsc[@]gmail.com> wrote:
I have set a path for xdebug.remote_log,
xdebug.remote_log = "c:/wamp64/php/php7.1.9"
I started XDebug in Visual Studio Code with Listen for XDebug config,
then I enabled debugging in the browser(XDebug Helper), then selected
Debug.
Submitted the form with the hope that XDebug would do its thing. The
code executed, but the debugger didn't do anything, such as create a log.
On Sun, 18 Mar 2018 at 16:52 Spencer Williams IV
<enderandpeter[@]yahoo.com <mailto:enderandpeter[@]yahoo.com>> wrote:
On Sunday, March 18, 2018, 9:38:46 AM MDT, Richard Dunne
<richarddunnebsc[@]gmail.com <mailto: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
<mailto: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 <mailto:richarddunnebsc[@]gmail.com>>
wrote:
These are the ini settings
zend_extension =
"c:\wamp64\bin\php\php7.1.9\ext\php_xdebug-2.6.0-7.1-vc14-x86_64.dll"
xdebug.remote_enable = On
xdebug.remote_autostart = 1
xdebug.remote_log = "c:/wamp64/php/php7.1.9"
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = Off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.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 <mailto: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
<https://xdebug.org/docs/remote#browser_session> 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
-- Sincerely, Richard Dunne B.Sc. Make sure to set xdebug.remote_log to a file path rather than to a directory. So try c:/wamp64/php/php7.1.9/xdebug.log. Sadly I haven't worked with Xdebug in Visual Studio Code yet. Hopefully there are some guides online that will help as well. --SpencerReceived on Sun Mar 18 2018 - 20:00:19 GMT
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST