ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

debug in aptana or eclipse

August 12, 2009 11:00am

Subscribe [3]
  • #1 / Aug 12, 2009 11:00am

    mrcoder

    31 posts

    HI,

    Iam new to php codeigniter. can any one tell me how to debug my application in aptana or eclipse just like we debug in java application.i have googled by i didnt find the correct solution for that.

  • #2 / Aug 27, 2009 8:26pm

    oldroy

    10 posts

    MrCoder,
    Again - I’ve abandoned the very complex set-up of debugging in aptana and eclipse in favour of the fire-php add-on to firebug. I do like ide based debugging, but outside of visual studio I’ve not been able to find the same thing. So, since I develop incrementally, I add in a $this->firephp->log($myvariable[]) and I can see what is happening in my models and controllers. It works.

  • #3 / Aug 28, 2009 9:38am

    attos

    58 posts

    Have you tried NetBeans?
    With it I’m able to debug server-side as well as client-side code from the IDE. You can single-step, watch variables, set breakpoints and so on. It also works with breakpoints in FF Firebug.
    I tried Eclipse (PDT 2.1) before, but I was not able to get the debugger working.

  • #4 / Aug 28, 2009 11:23am

    mrcoder

    31 posts

    Hi Attos,

    Have u tried debugging the web application. or u have tried just a small script. I have tried to debug a small program its debugging fine.but when i am trying to debug my codeigniter web application it failing.I have set a break point in my controler and clicked the debug button.its not coming to the index page.when i click f7 its not coming to the breakponit.it going step forward in config folder and it never coming to my debug point.can u please help me

  • #5 / Aug 28, 2009 3:09pm

    attos

    58 posts

    MrCoder;

    Is the debugger stoping on the first executable line?

    From the menu Tools | Options click on the PHP icon and uncheck the Stop at the First Line box.

    There are some config settings that are needed to change in your application config (system/application/config/config.php). These are (I commented out the original settings):

    $config['uri_protocol']    = "PATH_INFO"; //AUTO";
    $config['permitted_uri_chars'] = ''; //a-z 0-9~%.:_\-';
    $config['enable_query_strings'] = TRUE; //FALSE;

    Please note that the previous settings must only be used during development. They pose a security risk and must be avoided in production.

    If the breakpoint is not reached, then there is a bug somewhere. Check your server error log and/or set the log threshold config to 4 (in system/application/config/config.php):

    $config['log_threshold'] = 4;

    And check the system/logs directory for the latest file.

    Good luck.

  • #6 / Aug 29, 2009 3:04am

    mrcoder

    31 posts

    Hi Attos,

    Thank you dude now debugging is working fine for me.

  • #7 / Sep 14, 2009 12:54pm

    sidorvm

    5 posts

    Hello guys.

    I’m trying to setup debugger for CI. I’m using Zend Studio 7.
    When I press debug button in browser, my debug session is getting started, but stop on first line. setting “break on first line” is switched off. And debug session do not get my break points after I press F8. what is wrong?

    Also if set $config[‘uri_protocol’]  = “PATH_INFO”;
    my application doesn’t work. I mean that only index page could be loaded even if I put controller name in URL.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases