`
minmai
  • 浏览: 29655 次
社区版块
存档分类
最新评论

Debugging error of Eclipse PHP

阅读更多
The road for me as a long time dot net programmer to switch ‘code’ to PHP was undoubtedly a very bumpy one. Some of the things we took for granted in ASP.Net development can turn out to be struggles for other languages.

I was using Eclipse PDT with xDebug as the debugger(I have never been successful in setting up Zend debugger for Eclipse.), after a few debug sessions, I suddenly got an error when Eclipse reached the first breakpoint: Unexpected termination of script, debugging ended. I searched around, could not find any cure, it looked pretty much a dead end for my php project.

My experience working with open source tools is you do not give up easily. Even though at time I was just getting used to working in Eclipse and started enjoying it, I thought I better to give a try of another famous php IDE, Netbeans, everything was setup quickly, load the project and started debugging again. Unfortunate the luck was not long enough, the same issue comes back for Netbeans too. But it is the useful error message in Netbeans that pointed me to the solution of this problem, it was saying that this error might be caused by some of watches left in Expression panel from last debug session, and it turns out to be exactly the reason for both Netbeans and Eclipse.

Here is a screenshot of Eclipse

The solution is, close the error message box, and go to Expression view, right click, remove all watches, end this session, and start to debug again.
  • 大小: 20 KB
分享到:
评论

相关推荐

    Debugging Pentaho 2.0 with Eclipse

    ### 使用Eclipse构建与调试Pentaho 2.0 #### 概述 本文档将详细介绍如何在Eclipse集成开发环境中设置开发环境,包括如何连接到Pentaho Subversion仓库、检出Pentaho项目、构建这些项目以及使用独立的Java应用...

    The.Art.of.Debugging.with.GDB.DDD.and.Eclipse.pdf

    然而,根据标题和描述,我们可以推断出这本书的内容涵盖使用GDB、DDD和Eclipse进行程序开发调试的方法。GDB(GNU Debugger)是一个由GNU开源组织提供的强大的命令行调试工具,DDD(Data Display Debugger)是基于GDB...

    eclipse之PHP插件

    "eclipse之PHP插件"标题指的是在Eclipse中安装和使用PHP开发的扩展插件。这些插件为PHP开发者提供了强大的功能,包括代码编辑、调试、项目管理、版本控制集成以及对PHP框架的支持。 1. **Eclipse PHP Development ...

    The Art of Debugging with GDB, DDD, and Eclipse

    ### 《调试的艺术:使用GDB、DDD及Eclipse》 #### 书籍概述 《调试的艺术:使用GDB、DDD及Eclipse》是一本由Norman Matloff与Peter Jay Salzman合著的专业书籍,旨在帮助程序员掌握高效调试技巧。本书不仅深入介绍...

    the art of debugging

    the art of debugging

    THE ART OF DEBUGGING with GDB, DDD, and Eclipse

    ### 调试的艺术:利用GDB、DDD和Eclipse #### 一、书籍简介 《调试的艺术》是由诺曼·马特洛夫(Norman Matloff)和彼得·杰伊·萨尔兹曼(Peter Jay Salzman)共同编著的一本专业书籍。该书由No Starch Press出版,并...

    eclipse下的js插件

    4. **JavaScript Debugging (JSDT Debugger)**:Eclipse的JSDT Debugger允许开发者设置断点、步进执行代码、查看变量值,从而有效调试JavaScript应用。这对于解决复杂问题和优化代码至关重要。 5. **Eclipse ...

    Advanced.Apple.Debugging.&.Reverse.Engineering.v2.0 Code Part2

    Advanced Apple Debugging & Reverse Engineering, Second Edition ISBN: Learn the powerful secrets of Apple’s software debugger, LLDB, that can get more information out of any program than you ever ...

    Advanced Apple Debugging & Reverse Engineering Code part1

    Advanced Apple Debugging & Reverse Engineering, Second Edition ISBN: Learn the powerful secrets of Apple’s software debugger, LLDB, that can get more information out of any program than you ever ...

    php在eclipse的控制台console输出调试信息功能实现

    在“Debug Configurations”中创建一个新的PHP Remote Debugging配置,连接到运行着XDebug的PHP服务器,然后在代码中设置断点开始调试。 在实际开发中,你可能会遇到一些问题,比如输出的调试信息过多,这时可以...

    Art of Debugging with GDB, DDD, and Eclipse 软件调试的艺术

    《软件调试的艺术》一书,无论是中文版还是英文版,都是深入探讨调试技术的重要资源,尤其对于使用GDB、DDD和Eclipse等工具的开发者来说,更是不可或缺的参考书籍。调试是软件开发过程中的关键环节,它能帮助我们找...

    jd-eclipse-site-1.0.0-RC2.zip、jd-eclipse-2.0.0.zip

    It allows you to display all the Java sources during your debugging process, even if you do not have them all. Installation Download JD-Eclipse ZIP file, Launch Eclipse, Click on "Help > Install New ...

    Debugging Malloc Lab: Detecting Memory-Related Errors

    In addition, it should print out the information about all of the corrupted blocks, using the macro #define PRINTERROR(int errorcode, char *filename, int linenumber), with errorcode equal to the ...

    eclipse_多语言编辑插件

    10. **Debugging**: Eclipse的调试工具不仅支持单步执行、设置断点,还支持多线程调试和远程调试,使得问题排查更加高效。 11. **Plugins and Extensions**: Eclipse的开放架构允许开发者根据需求自定义和扩展IDE...

    The Art of Debugging.pdf

    《The Art of Debugging》(调试的艺术)这本书旨在引导读者提高调试过程的效率和效果。 书中首先介绍了三种在Linux/Unix平台上最受欢迎的调试工具:GDB、DDD和Eclipse。GDB(GNU调试器)是一个基于文本的命令行...

    DebuggingTools

    Debugging Tools for Windows 是一套强大的开发和调试工具,主要用于对Windows操作系统进行深入的故障排查和性能分析。这个工具集包含了多种实用程序,如WinDbg、KD、CDB、NTSD等,它们都是针对不同场景的专业调试器...

    The.Art.of.Debugging.with.GDB.DDD.and.Eclipse

    ### 关于《调试的艺术:使用GDB、DDD与Eclipse》 #### 一、书籍概述 本书《调试的艺术:使用GDB、DDD与Eclipse》由诺曼·马特洛夫(Norman Matloff)与彼得·杰伊·萨尔兹曼(Peter Jay Salzman)共同撰写,旨在为...

    Advanced Apple Debugging & Reverse Engineering

    Advanced Apple Debugging & Reverse Engineering, Second Edition ISBN: Learn the powerful secrets of Apple's software debugger, LLDB, that can get more information out of any program than you ever ...

    eclipse中文帮助文档

    12. **调试(Debugging)**:Eclipse提供了强大的调试工具,可以设置断点、查看变量值、单步执行代码等,帮助找出并修复程序错误。 13. **快捷键(Shortcuts)**:Eclipse支持自定义快捷键,熟练掌握常用快捷键能...

Global site tag (gtag.js) - Google Analytics