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.
In versions 8.1 it is not possible to add a breakpoint if the PHP line looks like this: <?php echo $tableColumn; ?> but if it is broken into multiple lines then the breakpoint can be added <?php echo $tableColumn; ?> Version 8.0 would allow the breakpoints.
I just verified that it used to work in NB 8.0. @mentlicher: Martine, could you please give me an advice where to have a look? It is strange because I do not think there were any changes in this PHP area between NB 8.0 and 8.1 so it could be maybe a problem in the debugger common support? Thanks.
I'm not sure what could be the reason, offhand. I need to investigate... I'll look at it...
*** Bug 257074 has been marked as a duplicate of this bug. ***
The problem is in the common debugger support, here: EditorContextDispatcher.getDefault().getMIMETypesOnLine(line) This method returns incorrect MIME type for one line PHP in an HTML file. Sample file: ------------------------ <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php echo 10; ?> </body> </html> ------------------------ Not sure if it is P2. Adding Sváťa to CC, he can advice how to get proper MIME type for an offset. Thanks.
(In reply to Tomas Mysik from comment #4) > Not sure if it is P2. Sorry, I meant P3, of course.
It's not 100% appropriate for this context, since Debugger needs to enumerate all mimetypes on a line. But for a given offset, working code can be found in editor.completion module, class org.netbeans.modules.editor.completion.CompletionImpl, lines 634 and above. Drilldown for an entire line range could deserve some optimization (?)
Fixed by changeset: 299407:0f3dfe005e93 http://hg.netbeans.org/core-main/rev/0f3dfe005e93
Integrated into 'main-silver', will be available in build *201607200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/0f3dfe005e93 User: mentlicher@netbeans.org Log: #257353: Languages on the line were not detected correctly.