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
The Art of Debugging illustrates the use of three of the most popular debugging tools on Linux/Unix platforms: GDB, DDD, and Eclipse. In addition to offering specific advice for debugging with each ...
ollydbg Debugging of DLLs
the art of debugging
英文原版。是关于使用GDB,DDD,Eclipse进行调试的优秀工具书,比manual要好多了。
讲述如何使用GDB进行程序开发调试,详述了GDB的各种用法和命令
Amazon五星图书,优秀的软件调试入门著作 总结业界多年口口相传的调试经验 丰富的C/C++实例阐述适用于各种平台与编程语言的通用调试原则 详解GDB、DDD和Eclipse三大工具应用
Through a combination of best practices and common debugging and programming techniques - several of which are not currently documented in other books - this book shows developers why the system works...
Every software developer and IT professional understands the crucial importance of effective debugging. Often, debugging consumes most of a developer’s workday, and mastering the required techniques ...
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 ...
Now, with over 15 years of experience two of Microsoft’s system-level developers present a thorough and practical guide to Windows debugging ever written. Mario Hewardt and Daniel Pravat cover ...
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 ...
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 ...
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 ...
Inline Debugging of ASP.NET Pages Inline Debugging of Components Remote Debugging Summary 8. Leveraging the Windows 2000 Event Log The Windows 2000 Event Log Defined Web Applications Can...
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.NET.Debugging Advanced.NET.Debugging Advanced.NET.Debugging
This document provides different tools and techniques useful for debugging audio issues encountered in Linux-based systems. The document is mostly focused on the Android operating system, but some of ...
一个除错诊断工具,你可以使用Debugging Tools for Windows去测试你的Windows
Debugging tools for windows(x86 6.10.3.233) ....................