6

I have jquery making an ajax call to another php file and cannot workout how to get netbeans and xdebug to stop at a breakpoint on this file. EG:

index.php

function ajaxfunc(){
    ...
}

other.php

<?php
    echo Whatever::doit();
    class Whatever(){
            public function doit(){
                $stopme="now";
            }
    }
?>

Netbeans stops at code in index.php but not in other.php

1 Answer 1

10

Add ?XDEBUG_SESSION_START=netbeans-xdebug to your ajax url.

that will turn on debugging for your ajax call. make sure the project you have open has the other.php file in it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.