[resolved] DebugBreak() not working |
|
Also, DebugBreak() is working perfectly in some occasions.
In the one occasion that I really need - it's not working. The file is outside of webroot so maybe that is the reason. It is a class file that other php files inside webroot depend on and use. |
||||||||||||
|
Guru master
|
I'm wondering if PhpED cannot access the source file via FTP or mapping, it then ignores the DebugBreak. In the past I've debugged files within the root folder where I don't have source available and PhpED will download a copy by FTP if it can.
I've just added a file outside of the web root on a Windows server and DebugBreak works fine in there, but of course PhpED does have full access to the local file system. One experiment you can try is to put a DebugBreak somewhere before that class gets loaded then see what happens if you try and single-step into the __construct(). If PhpED steps over it, that might confirm it is an issue with accessing source. Later on I will do the same on a Linux server and see what happens. |
||||||||||||
|
Guru master
|
Whilst I think PhpED can debug CLI PHP, I'm not so sure that the web debugging will do it. I'm not too sure how you are interfacing to the CLI PHP (is it through shell?) but the web debugger is via Apache PHP and CLI PHP is separate to Apache PHP.
This might be a question for Dmitri, so possibly best you put it through support. He has some really neat 'tricks' for debugging stuff. |
||||||||||||
|
|
I found where the problem is. Here is the code:
I can debug up until a certain point. The command exec($command); executes the php file, and from that point I have no clue what happens. I cannot debug what is happening inside process.php which is executed as cli. |
||||||||||||||
|
|
I found the reason why it is not working.
I just started working in this company so I didn't know their system. There is a separate php.ini that is being processed when running scripts in CLI mode, and this file is not listed in phpinfo(). Luckily I found where it is located accidentally. So I entered the debugger settings and it worked! Anyway, thanks guys! |
||||||||||||
|
[resolved] DebugBreak() not working |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by