NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
rogeriodec
Joined: 11 Apr 2012 Posts: 2
|
Posted: Wed Apr 11, 2012 2:17 am Post subject: Breakpoint instruction? |
|
|
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.
|
Posted: Wed Apr 11, 2012 3:52 pm Post subject: Breakpoint instruction? |
|
|
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
|
Posted: Wed Apr 11, 2012 5:34 pm Post subject: Re: Breakpoint instruction? |
|
|
| 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
|
Posted: Thu Apr 12, 2012 7:26 am Post subject: |
|
|
| 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
|
Posted: Mon Apr 30, 2012 8:59 pm Post subject: |
|
|
| luicyfernadis wrote: | | It is even more fun to know how do breakpoints work in the first place. |
Do tell...  |
|
| 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
|
|