NuSphere Forums Forum Index
NuSphere Forums
Reply to topic


Joined: 09 Oct 2006
Posts: 21
Reply with quote
I can't stop debugger in build 4625

As soon as I have used debugger once, I can't stop it (without to exit phped), it always triggers even when I try to run a script without it.

Here is what happens:
I have two stripts script_a.php it launches script_b.php

I can run the first one with or without debugger, but the second one is always lanched with debugger as you can see in the following log:

Quote:
"Action", "running script: http://localhost:8080/file:/D:/web/blg/db/lpv/search.php", "09:00:03", ""
"Action", "navigating: http://localhost:8080/file:/D:/web/blg/db/lpv/search.php", "09:00:03", ""
"Client", "GET:", "09:00:03", ""
"Client", "lang=en", "09:00:03", ""
"Client", "rate=-7", "09:00:03", ""
"Action", "navigating: http://localhost:8080/file:/D:/web/blg/db/lpv/db_lpv.php", "09:00:12", ""
"Client", "GET:", "09:00:12", ""
"Client", "search-submitted=1", "09:00:12", ""
"Client", "forum_id=0", "09:00:12", ""
"Client", "match_type=SUBJECT", "09:00:12", ""
"Client", "search=", "09:00:12", ""
"Client", "match_forum=ALL", "09:00:12", ""
"Client", "match_dates=0", "09:00:12", ""
"Client", "date_b=1158130803", "09:00:12", ""
"Client", "date_e=1160722803", "09:00:12", ""
"Action", "Debug session (ID=390033449502700001) started", "09:00:12", ""
View user's profileFind all posts by Bertrand Le GuernSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Dear Bertrand Le Guern,
I'd say that such aggressive manner is not acceptable there. Please no more reds, no bolds. Messages are well readable even without such emphasizings Smile

Regarding non-stoppable session, could you please check and make sure that no DebugBreak() statements left in your script that runs in the debugger "without your requests"?

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


Joined: 09 Oct 2006
Posts: 21
Reply with quote
There is no DebugBreak() statement (... I have never heard about it), nor any breakpoint (it was, but I have cleared it) and I have also cleared the Run and "Run in debugger" menu boxes, in case of ...
View user's profileFind all posts by Bertrand Le GuernSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Breakpoints can't initiate debug session.

Well. Are you working with embedded browser or with external one? In case of external, is it IE or Firefox or something else?

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


Joined: 09 Oct 2006
Posts: 21
Reply with quote
With phped's embedded browser, who looks very much like MSIE ...
View user's profileFind all posts by Bertrand Le GuernSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
when IDE logged this line
"Action", "navigating: http://localhost:8080/file:/D:/web/blg/db/lpv/db_lpv.php", "09:00:12", ""

Were you navigating to this page with Run button (run without debugger)?
or somehow else? For example by putting URL directly into the browser.
Please explain in the details all steps you did.

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


Joined: 09 Oct 2006
Posts: 21
Reply with quote
Quote:
when IDE logged this line
"Action", "navigating: http://localhost:8080/file:/D:/web/blg/db/lpv/db_lpv.php", "09:00:12", ""

Were you navigating to this page with Run button (run without debugger)?
or somehow else?


I first launch (with Run button) the default script of my current project, search.php (it is a form: <form action = 'db_lpv.php' method = 'get'>) then after pressing the submit button, db_lpv.php starts in debugger and stops on the first line of the script.
View user's profileFind all posts by Bertrand Le GuernSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
well, try the following:
-exit from the IDE.
-run it again
-open search.php in the editor and press Run (without debugger)
-then fill in the form and press submit.
Does it launch debugger?

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


Joined: 09 Oct 2006
Posts: 21
Reply with quote
With a "fresh" IDE it works perfectly as I wrote in my first post on this subject.

The problem occurs as soon as I launch search.php with the "Run in debugger" button, after program as stopped, for all subsequent attempts to run the project, the second scripts always starts in debugger.

I have tried to stop the running script with the stop button (when it is red), without success.
View user's profileFind all posts by Bertrand Le GuernSend private message


Joined: 09 Oct 2006
Posts: 21
Reply with quote
An easy way to reproduce my problem

A test project with two scripts first.php and second.php

first.php
Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>First</title>
</head>
<body>
<form name='test' id='test' action='second.php' method='post'>
<input type='text' name='text' id='text' value='abcdefgh' size='40'><input type='submit' name='ok' id='ok'>
</form>
</body>
</html>


second.php
Quote:
<html>
<head>
<title>Second</title>
<!--link rel="stylesheet" type="text/css" href="my.css"-->
</head>
<body>
<?php
foreach ($_REQUEST as $key => $val) {
echo htmlspecialchars($key) . ' = ' . htmlspecialchars($val) . "<br />\n";
}

?>
<a href="first.php">First</a>
</body>
</html>


Set first.php as the default file to run of a test project

1) Launch the project with the Run button: everything OK
2) Launch the project with the "Run in debugger" button: everything OK
3) Launch the project with the Run button: first.php starts without debugger, but press the submit button and second.php is launched in debugger and the output of the program is:
Quote:
text = abcdefgh
ok = Soumettre la requĂȘte
path = /
DBGSESSID = 390042324818900001;d=1,p=0,c=1
First
View user's profileFind all posts by Bertrand Le GuernSend private message
can't stop debug session
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