Phped Debugging Issue |
Guru master
|
I just put this into a .htaccess:
Then I put a breakpoint at the start of an index.php which contains the following:
With a breakpoint on the echo statement, PhpED stops everytime I click the link, so seems to work fine. The NuSphere DBG module uses browser cookies to determine if debugging is enabled, so if your browser was blocking session cookies, that could cause a problem with breakpoints when clicking links. You could try changing your link to something like:
That will cause DBG to to be invoked even if session cookies are disabled (any number can be used; 1234 will work). |
||||||||||||||||||
|
Thanks ! |
|
Dear Sir,
My .haccess file is : RewriteRule ^([^/]+).html /index.php?file=$1 [NC] RewriteRule ^([^/]+)/([^/]+).html /index.php?file=$1&sub1=$2 [NC] ~~~~~~~~~~~~~~~~~~~~~~~~~ And portion of Index.php is <?php ob_start(); ?> $file_name = $_REQUEST["file"]; $root_dir_path = 'themes/'.$theme_name.'/pages/'; //root directory $root_sidebar_path = 'themes/'.$theme_name.'/'; switch($file_name) { case "order": $sub1 = $_REQUEST["sub1"]; if($sub1 == "category") { $url = $_SERVER['REQUEST_URI']; $last_uri = end(explode('/',$url)); $category_name = current(explode('.',$last_uri)); $left = $root_dir_path."category.php"; $page_title = ucfirst("Deals In ".$category_name); $view = "template_2.php"; } default: $page_title = "Home"; $left = $root_dir_path."home.php"; $right = $root_sidebar_path."side_bar.php"; $view = "template_3.php"; break; } // end switch Now 1st time when I run index.php file in PHPed IDE, then it opens output window with http://localhot:8080/index.php?debugsessionid=..... and breakpoint is at 1st line of code (index.php) then it opens web page wih links like how it works , Order etc Now , When I click on Order, the cursor is not going back to the index.php( break point), it simply outputs the web result that is Order page. PLeas guide me, what steps should I follow to make breakpoint working 2nd time ( that is from browser to index.php). thanks so much.after so much fight, your replay gave me some hope. thanks. God bless you. |
||||||||||||
|
Phped Debugging Issue |
|
I tired using your method,
my index.php file is <? php echo '<a href="howitworks.html?DBGSESSID=1234">HOME</a>' ; ?> and i wrote your rewrite conditon and rule, when i start debugger , it stops at echo at 1st time, then press F7, goes into exit mode then output windows shows HOME link, after I click on HOME, the ouput window says "webpage cannot be found" . I was expecting the breakpoint to go back to my index.php file Don't know wat's wrong. PLease help |
||||||||||||
|
Phped Debugging Issue |
|
||
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