Community
Participate
Working Groups
Created attachment 109685 [details] Error messages of above bug contained in log file along with additional errors after the initialization Build ID: 3.4.0 I20080617-2000 Steps To Reproduce: 1. Start a XDebug session that has been setup as a multisession 2. Error shows up as: An error has occurred. See error log for more details. org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpMultiSessionTarget cannot be cast to org.eclipse.php.internal.debug.core.model.IPHPDebugTarget 3. Loading up any page while debug session is running causes a debug error with the details of just "error". More information: Attaching log file.
Forgot to include PDT build number... it was N20080810.
There are 2 problems here 1. DBGpMultiSessionTarget needs to implement IPHPDebugTarget 2. There is a null pointer exception occuring in DebugOutputView I have fixed issue 1 and put a workaround in for issue 2, but I think another PDT developer more familiar with the Debug Output implementation should take a look. I recreate the problem by just running phpinfo() from apache. If more specific recreate is required then I can provide it. The stacktrace is java.lang.NullPointerException at org.eclipse.wst.css.ui.internal.style.LineStyleProviderForEmbeddedCSS.getCachedParsingResult(LineStyleProviderForEmbeddedCSS.java:83) at org.eclipse.wst.css.ui.internal.style.LineStyleProviderForEmbeddedCSS.prepareRegions(LineStyleProviderForEmbeddedCSS.java:35) at org.eclipse.wst.sse.ui.internal.rules.StructuredDocumentDamagerRepairer.createPresentation(StructuredDocumentDamagerRepairer.java:48) at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.createPresentation(StructuredPresentationReconciler.java:919) at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.processDamage(StructuredPresentationReconciler.java:1046) at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler$InternalListener.inputDocumentChanged(StructuredPresentationReconciler.java:470) at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2714) at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2763) at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:541) at org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:369) at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.setDocument(StructuredTextViewer.java:785) at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:482) at org.eclipse.jface.text.TextViewer.setInput(TextViewer.java:2744) at org.eclipse.php.internal.debug.ui.views.DebugOutputView.update(DebugOutputView.java:189) at org.eclipse.php.internal.debug.ui.views.DebugOutputView.selectionChanged(DebugOutputView.java:137) ... The problem occurs in LineSytleProviderForEmbeddedCSS.prepareRegions. The call IStructuredDocumentRegion wholeRegion = getDocument().getRegionAtCharacterOffset(regionStart); returns null.
*** This bug has been marked as a duplicate of bug 241271 ***
fixed