NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
opening window with javascript disables debugging


Joined: 14 Jun 2004
Posts: 3
Location: Ruhr-Uni Bochum / Germany
Reply with quote
Hi,
I'm trying to debug the following:
In my first window I open another window using javascript:

<html><head>
<title>Start</title>
<script language="javascript">
MyWindow=window.open("next.php?param1=111", "Start");
</script>
</title>
</head></html>

The program "next.php" just shows the value of the param:
<html><body>
<? echo "param1=\"$param1\""?>
</body></html>

I can set a breakpoint on the php-statement in "next.php", but the debugger won't stop there.
Its no solution to use a form and submit etc. because I have 3 large projects which I cant restructure.

Any idea
Greetings
Dieter
View user's profileFind all posts by hdtSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
did you run first page in debugger ? If yes, next.php will be opened in debugger automatically. If no, you'd read http://forum.nusphere.com/howto-run-debug-session-t585.html
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Jun 2004
Posts: 3
Location: Ruhr-Uni Bochum / Germany
Reply with quote
Yes I run the first script in the debugger.
A script like

start1.php:
<html><head>
<form action="next1.php">
<INPUT TYPE="SUBMIT" value="Start">
</form>
</head></html>

next1.php:
<html><body>
<?$value=1;?>
</body></html>

works, I can set a breakpoint at line 2 of next1.php, the debugger stops there. I will try the other things now...
View user's profileFind all posts by hdtSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
with the 1st case debug session didn't start because script next.php was requested from a _new_ window and because dbg cookie is temporary, it didn't reach that window. In this case you have to add an explicit DBGSESSID request...
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Jun 2004
Posts: 3
Location: Ruhr-Uni Bochum / Germany
Reply with quote
The DBGSESSID works, everything is ok now. Thanks for your help
Dieter
View user's profileFind all posts by hdtSend private message
opening window with javascript disables debugging
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