NetBeans Forums

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

Breakpoint instruction?

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



Joined: 11 Apr 2012
Posts: 2

PostPosted: Wed Apr 11, 2012 2:17 am    Post subject: Breakpoint instruction? Reply with quote

I have a giant Drupal site and in some cases there are PHP snipets which are inserted into a text field in a very complex structure.
It is very difficult to locate these snipets via Netbeans (because they are not files).
The easiest way would be to have some instruction or special code that I could insert in the middle of the php code to force a breakpoint.
Is there such a code?
Back to top
Geoff Hoffman
Posted via mailing list.





PostPosted: Wed Apr 11, 2012 3:52 pm    Post subject: Breakpoint instruction? Reply with quote

On Tue, Apr 10, 2012 at 7:17 PM, rogeriodec <address-removed ([email]address-removed[/email])> wrote:
Quote:
I have a giant Drupal site and in some cases there are PHP snipets which are inserted into a text field in a very complex structure.
It is very difficult to locate these snipets via Netbeans (because they are not files).
The easiest way would be to have some instruction or special code that I could insert in the middle of the php code to force a breakpoint.
Is there such a code?





Not that I am aware of. You could try pasting the code into an actual PHP file and including it just above where Drupal is trying to so it can be debugged, but that is not a pretty solution either.
Back to top
rogeriodec



Joined: 11 Apr 2012
Posts: 2

PostPosted: Wed Apr 11, 2012 5:34 pm    Post subject: Re: Breakpoint instruction? Reply with quote

Geoff Hoffman wrote:
On Tue, Apr 10, 2012 at 7:17 PM, rogeriodec <address-removed ([email]address-removed[/email])> wrote:

Not that I am aware of. You could try pasting the code into an actual PHP file and including it just above where Drupal is trying to so it can be debugged, but that is not a pretty solution either.


My problem is that Drupal goes through many parts of the code that I can not get in my php snippet via step-by-step.
Hence my idea of ​​having a manual instruction on the code that Netbeans is obliged to stop at that command. This would greatly facilitate.
I found out over the Internet and I saw some people talking about Conditional Breakpoints. Is there something similar?
Back to top
luicyfernadis



Joined: 12 Apr 2012
Posts: 1
Location: 48 THREE RIVERS DRIVE, NEWARK,DE 19702, USA

PostPosted: Thu Apr 12, 2012 7:26 am    Post subject: Reply with quote

It is very useful to be able to break execution of code at a line number of your choice. Breakpoints are provided in debuggers to do exactly that. It is fun getting to the root of the problem by setting breakpoints in a debug session. It is even more fun to know how do breakpoints work in the first place.
Back to top
xtiansimon



Joined: 16 Aug 2011
Posts: 15

PostPosted: Mon Apr 30, 2012 8:59 pm    Post subject: Reply with quote

luicyfernadis wrote:
It is even more fun to know how do breakpoints work in the first place.


Do tell... Cool
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
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo