This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 201283

Summary: Auto break on Notice
Product: php Reporter: monk.e.boy
Component: DebuggerAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal    
Priority: P1    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description monk.e.boy 2011-08-24 15:16:31 UTC
Hi,

  Wish I could tell the debugger to stop/break (I don't know what the terminology is) open NetBeans with debugger on the line that caused the Notice or Error or whatever.

  A tick box in the options "Break On Error/Notice/Warning"

Thanks for NetBeans :)
Comment 1 Ondrej Brejla 2011-08-24 15:20:34 UTC
I'm not sure if XDebug supports this behaviour, but I think that it doesn't. Definitely not a defect with P2 priority. Changing to P3 Enhancement.
Comment 2 monk.e.boy 2011-08-25 09:35:00 UTC
You may be correct.

http://xdebug.org/docs/remote

seems to say that it will break on errors, but in that mode it won't break on normal breakpoints.

I submitted this: http://bugs.xdebug.org/view.php?id=711
Comment 3 zenned 2012-10-16 09:59:45 UTC
(In reply to comment #1)
> I'm not sure if XDebug supports this behaviour, but I think that it doesn't.
> Definitely not a defect with P2 priority. Changing to P3 Enhancement.

Now it's supported by xdebug. Maybe it's time to implement breakOnError

http://bugs.xdebug.org/view.php?id=711
Comment 4 CyRaid 2016-12-05 20:52:53 UTC
According to that bug report, you would just need to add these:

breakpoint_set -t exception -X Notice
breakpoint_set -t exception -X Warning
breakpoint_set -t exception -X Error
Comment 5 Castrob 2019-06-19 10:56:12 UTC
Maybe the version of netbeans you have

Castro B,
http://notariscompare.nl/