| View previous topic :: View next topic |
| Author |
Message |
ChrisNY
Joined: 25 Jun 2009 Posts: 2
|
Posted: Thu Jun 25, 2009 8:28 pm Post subject: How to find where you are in the code execution when debugging? |
|
|
After nearly half a year of trying, I finally got xdebug to work with Netbeans (ver. 6.7 RC3). I can set breakpoints, watches, step through code, etc.
But my most typical problem is when php hangs or dies with a blank screen or just half the screen filled in. I want to know where in the php code I am in, or last was before it died; on what line.
I don't know how to do that with netbeans & xdebug. I mean, I'm talking about many 10's of thousands of lines of code, jumping from module to module. I can't step through line by line, and I can't set breakpoints everywhere. I just want to be able to pause execution and see where I am or last was.
Is there any way to do that? What I do now is start the debug session. The app starts and breaks at the first line. I hit continue and interact with the app until it freezes or is blank. That's when I want to know where I am. The call stack doesn't show anything, the "pause" control/option in the debug menu is disabled, as are all the other debug options (step into, etc.), except for "Stop Debugging".
Sorry if I'm missing something obvious, but I did try to rtfm and search first. |
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Fri Jun 26, 2009 11:51 am Post subject: How to find where you are in the code execution when debugging? |
|
|
ChrisNY wrote:
| Quote: | After nearly half a year of trying, I finally got xdebug to work with Netbeans. I can set breakpoints, watches, step through code, etc.
But my most typical problem is when php hangs or dies with a blank screen or just half the screen filled in. I want to know where in the php code I am in, or last was before it died; on what line.
I don't know how to do that with netbeans & xdebug. I mean, I'm talking about many 10's of thousands of lines of code, jumping from module to module. I can't step through line by line, and I can't set breakpoints everywhere. I just want to be able to pause execution and see where I am or last was.
Is there any way to do that? What I do now is start the debug session. The app starts and breaks at the first line. I hit continue and interact with the app until it freezes or is blank. That's when I want to know where I am. The call stack doesn't show anything, the "pause" control/option in the debug menu is disabled, as are all the other debug options (step into, etc.), except for "Stop Debugging".
Sorry if I'm missing something obvious, but I did try to rtfm and search first.
| Maybe this could help:
http://devzone.zend.com/article/2871-Tracing-PHP-Applications-with-xdebug
Radek |
|
| Back to top |
|
 |
|
|
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 You can attach files in this forum You can download files in this forum
|
|
|
|