CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Thu Apr 25, 2024 10:17 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Debug with php built-in web server
PostPosted: Wed Jul 15, 2015 11:16 am 
Offline

Joined: Wed Jul 15, 2015 11:05 am
Posts: 2
I've managed to debug using the php built-in web server, but I've noticed that there is no redirect to output window in IDE.
Everything works fine (breakpoints, call stack, locals, watch...) except taht in case of any error the IDE shows nothing and I have to switch to the console window of web server where I can find the details for the error.

Is that normal? Is there any way to redirect and manage errors to the "output" and "errors" windows inside the IDE ?

I'm using PHP 5.6.11 Non_Thread_Safe and tried starting the bulit-in web server this way:

Code:
php -S localhost:80 -t c:\path   o oot\docs


and also with -e switch (extended information for debugger) with no success

Code:
php -S localhost:80 -t c:\path   o oot\docs -e


Thanks in advance


Top
 Profile  
 
 Post subject: Re: Debug with php built-in web server
PostPosted: Wed Jul 15, 2015 1:21 pm 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3932
Hi, magtae.

Yes, we know about it.
Unfortunately Codelobster hasn't this ablity yet.

Regards,
Codelobster Team.


Top
 Profile  
 
 Post subject: Re: Debug with php built-in web server
PostPosted: Wed Mar 16, 2016 7:04 pm 
Offline

Joined: Wed Jul 15, 2015 11:05 am
Posts: 2
Ok, Thanks!

Just in case anyone is interested in debugging with php built-in webserver I post here my configuration.

My PHP version : 5.6.19 NTS (Non Thread Safe) on Windows x64

Codelobster preferences ->Debugger -> Settings :
Code:
- Virtual folder : C:\php\web (i put here my web files)
- Virtual host URL : http://localhost
- Path to php.ini : C:\php
- Web Server : Empty
- Php Version : PHP_5.6.x_VC11_x64_Non_Thread_Safe
- Port : 6000

Then press "Apply" and after that press "Install Debugger".
If everything is ok your php.ini should have been modified with these lines at the end:

Code:
[CLDbg]
extension=php_cl_dbg_5_6_VC11_nts_x64.dll
clport=6000


Now you can start your php webserver with this command line (I use a bat file for easy of use):

Code:
c:\php\php.exe -S localhost:80 -t c:\php\web


Happy coding out there!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 142 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2016 phpBB Group