FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to find where you are in the code execution when debugging?

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
ChrisNY



Joined: 25 Jun 2009
Posts: 2

PostPosted: Thu Jun 25, 2009 8:28 pm    Post subject: How to find where you are in the code execution when debugging? Reply with quote

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
View user's profile Send private message
radek matous
Posted via mailing list.





PostPosted: Fri Jun 26, 2009 11:51 am    Post subject: How to find where you are in the code execution when debugging? Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB