Page 1 of 1

Debugging php eval instruction

PostPosted: January 9th, 2019, 9:48 am
by msalas
I have been using PHP tools for visual studio for more than a year now.
I'm currently using version 1.29.11015.2017 and php 7.0 (windows 10).

In one of my projects, I create a command line dynamically and evaluate
that instruction with php command "eval".In the past, at some point I was able to set a break point in the eval line of my program, and by pressing F11 in
MS Visual studio, I was able to trace the instruction (function) that was being evaluated.

Currently, if I try to do that, it is only sending me an error:
The program '[13572] php.exe' has exited with code -1 (0xffffffff).

Is there an issue of an update of "php tools for visual studio" or you reckon
is a problem with my settings?


Re: Debugging php eval instruction

PostPosted: January 9th, 2019, 12:51 pm
by maros.beno
if I understand you correctly, when you have a script such as this:

function hello()
echo "hello";


and put a breakpoint inside hello function, visual studio will not break on this breakpoint for you? It does that for me, so i think it's something with your code. It really depends on multiple factors like xdebug version, php version etc. But in default this should work, so i suspect your settings.