Internal Error When Debugging PHP Code [message #1823388] |
Wed, 25 March 2020 22:31  |
Eclipse User |
|
|
|
PHP Development Tools (PDT) 7.1.0.202002212050
When I debug on the built-in server, I find the following internal error in the Eclipse log. Xdebug is the debugger. The code runs correctly when not debugging.
__________________________________________________________________________
!ENTRY org.eclipse.core.jobs 4 2 2020-03-25 21:05:26.949
!MESSAGE An internal error occurred during: "Creating console for C:\Program Files\Ampps\php\php.exe (Mar 25, 2020 9:05:26 PM)".
!STACK 0
java.lang.ClassCastException: org.eclipse.debug.core.model.RuntimeProcess cannot be cast to org.eclipse.php.internal.debug.core.launching.PHPProcess
at org.eclipse.php.internal.debug.ui.console.PHPLineTracker.init(PHPLineTracker.java:47)
at org.eclipse.debug.internal.ui.views.console.ConsoleLineNotifier.connect(ConsoleLineNotifier.java:55)
at org.eclipse.ui.internal.console.ConsolePatternMatcher.addPatternMatchListener(ConsolePatternMatcher.java:232)
at org.eclipse.ui.console.TextConsole.addPatternMatchListener(TextConsole.java:454)
at org.eclipse.debug.internal.ui.views.console.ProcessConsole.<init>(ProcessConsole.java:257)
at org.eclipse.debug.internal.ui.views.console.ProcessConsoleManager$ConsoleCreation.run(ProcessConsoleManager.java:75)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
|
|
|
Re: Internal Error When Debugging PHP Code [message #1857329 is a reply to message #1856104] |
Tue, 31 January 2023 00:54  |
Eclipse User |
|
|
|
Hi,
This error message suggests that there is a ClassCastException in the code. This means that an object of one type is being cast to another type, but the cast is not valid. In this case, the error occurs when trying to cast a "RuntimeProcess" object to a "PHPProcess" object.
The issue could be caused by a bug in the code or a mismatch between the versions of the plugins being used. To resolve this issue, you could try the following steps:
Update the PHP Development Tools (PDT) to the latest version.
Check if the Xdebug extension is compatible with the current version of PHP and PDT.
Try reinstalling the Xdebug extension.
If the issue persists, try creating a new workspace and importing the project into it.
If none of these steps resolve the issue, you may want to seek further assistance from the Eclipse community or the Xdebug community.
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.24590 seconds