NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] CakePHP debugging in phpED


Joined: 22 Mar 2007
Posts: 3
Reply with quote
I'm afraid that everone here doesn't know about CakePHP, one of the PHP frameworks, but I have difficulties in debugging CakePHP in phpEd(Standard Edition), and will ask someone who knows the answer anyway.

My 'Test' project is a very simple AJAX example.
Two actions- 'index' and 'update' are in C:\workspace\cakephp\app\controllers\tests_controller.php.

-- tests_controller.php --
<?php
class TestsController extends AppController {
var $name = 'Tests';
var $helpers = array('Html', 'Javascript', 'Ajax');

function index()
{
//Do Nothing
}

function update()
{
$this->layout = 'ajax';
}

}
?>

Two view files, index.thtml and update.thtml corresponding to each action are in C:\workspace\cakephp\app\views\tests
--index.thtml--
<?php echo $ajax->link('Link', '/tests/update', array('update' => array('first', 'second'))); ?>
<div id="first"> first div </div>
<div id="second"> second div </div>

--update.thtml--
<?php echo $ajax->div('first'); ?>
first div updated: <?php echo strtotime('now'); ?>
<?php echo $ajax->divEnd('first'); ?>
<?php echo $ajax->div('second'); ?>
second div updated
<?php echo $ajax->divEnd('second'); ?>

The Test project properties I set are like the following:

Project: C:\Program Files\nusphere\phped\Projects\tests.ppj
Root directory: C:\workspace\cakephp

Run mode: HTTP mode (3rd party WEB server)
Root URL: http://localhost/cakephp/tests/index

I opened tests_controller.php in the embedded editor, and started "Run
in Debugger", but an error message pops saying


"Failed to start debug session.
Please make sure that debugger module is installed on the server that
corresponds to
http://localhost/cakephp/tests/index/app/controllers/tests_controller...
URL"


I tried several combinations of project properties, but in vain.
Please correct me, if anyone succeeded in debugging CakePHP in phpEd.
View user's profileFind all posts by skyblueinkSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Looks like you forgot to install debugger module for PHP that you run under Apache or IIS or whatever you run as a local web server.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 22 Mar 2007
Posts: 3
Reply with quote
Thanks, dmitri.
The following line solved the problem.

extension=php_dbg.dll-5.2.x

Since all of the php.ini examples here gave

extension=php_dbg.dll-5.2

I forgot to add .x as a "file name extension".
View user's profileFind all posts by skyblueinkSend private message
[resolved] CakePHP debugging in phpED
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 vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic