Debugging php eval instruction
2 posts
• Page 1 of 1
Debugging php eval instruction
Hello,
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?
Thanks
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?
Thanks
- msalas
- Posts: 1
- Joined: January 9th, 2019, 9:27 am
Re: Debugging php eval instruction
Hi,
if I understand you correctly, when you have a script such as this:
<?php
function hello()
{
echo "hello";
}
eval("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.
if I understand you correctly, when you have a script such as this:
<?php
function hello()
{
echo "hello";
}
eval("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.
Maroš Beňo
-
maros.beno - Posts: 62
- Joined: October 12th, 2016, 12:11 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 42 guests