| 
| Breakpoints in "action" scripts [message #21557] | Thu, 17 May 2007 17:05  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: dserodio.gmail.com 
 Thanks to the excellent documentation at
 http://www.thierryb.net/pdtwiki/index.php?title=PDT_User_Gui de I managed
 to create a breakpoint on my "index.php" page, and the execution
 actually stopped at this breakpoint.
 
 Now, I need to set a breakpoint on a page which processes the form
 submission, ie the 'process.php' in '<form action="process.php">'.
 
 How can I make the execution stop at this breakpoint?
 
 Thanks,
 Daniel Serodio
 |  |  |  | 
|  | 
| 
| Re: Breakpoints in "action" scripts [message #21958 is a reply to message #21644] | Fri, 18 May 2007 09:11   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: dserodio.gmail.com 
 Darnell Turner wrote:
 >
 >> Now, I need to set a breakpoint on a page which processes the form
 >> submission, ie the 'process.php' in '<form action="process.php">'.
 >>
 >> How can I make the execution stop at this breakpoint?
 >
 > It should stop there if you set the breakpoint in some php block inside
 > the process.php file. If it’s mixed html and php and you try to set a
 > breakpoint into a line where no php is found, the breakpoint is set to
 > the next available php line. Does that help you?
 
 The problem is that I need to set a breakpoint in process.php, and start
 the request in index.php.
 
 If I choose "Debug As > PHP Web Page" in process.php, it opens
 process.php in the Web Browser.
 If I choose "Debug As > PHP Web Page" in index.php, it opens index.php
 in the browser and then the debugger session ends.
 
 I need it to open index.php in the browser, so I can fill the form and
 then submit to process.php, where the breakpoint is.
 
 Thanks,
 Daniel Serodio
 |  |  |  | 
|  | 
|  | 
|  | 
|  | 
|  | 
| 
| Re: Breakpoints in "action" scripts [message #24520 is a reply to message #22625] | Tue, 29 May 2007 14:45  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: Darnell.Turner.gmx.net 
 > But these parameters won't be sent to process.php, so if debugging
 > depends on them, how could process.php "know" that it must run in debug
 > mode?
 
 By the session cookie in your browser.
 
 >
 > Also, this "send_sess_end=1" seems suspicious, it sounds like it's
 > asking to end the debugging session.
 
 Well, does it? What if you just call it manually and omit that part?
 Could it be that you have some security software running that kills
 sessions or cookies?
 
 -dT
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03932 seconds