netbeans下调试php程序-xdebug
环境说明:
- pc系统:ubuntu 16.04
- php版本:5.6.23
- apache:Apache/2.4.18 (Ubuntu)
第一步:修改xdebug.ini
- 打开文件/etc/php/5.6/mods-available/xdebug.ini
- 在文件中添加如下代码:
end_extension=/usr/lib/php//xdebug.so [xdebug] xdebug.remote_autostart= xdebug.remote_enable= xdebug.remote_handler="dbgp" xdebug.remote_mode="req" xdebug.remote_port= # 未被占用端口 xdebug.remote_host=127.0.0.1 xdebug.profiler_enable= xdebug.profiler_output_dir="/var/log/xdebug/" xdebug.idekey="netbeans-xdebug" xdebug.remote_log="/var/log/xdebug/xdebug.log" #log路径定义
- 重启apache
sudo service apache2 restart
第二步:netbeans修改
- 打开netbeans
- 选择“Tools”-->"Options"-->"PHP"-->"Debugging"
- 设置Debuger port 为 9002
- Apply
- 执行Debug project
备注:
如果调试时显示:
Not Found The requested URL /admin/ was not found on this server. Apache/2.4.18 (Ubuntu) Server at localhost Port 80
“鼠标右击项目”-->project properties-->Run Configuration-->Project URL
将访问地址修改为实际测试地址和端口
netbeans下调试php程序-xdebug的更多相关文章
- 如何使用加多宝(jdb)在linux下调试Java程序
毕业时写了一段时间的C,那时候调试使用gdb,后来转了java,当时就想java程序怎么调试,找了一下,果然,那就是jdk自带的jdb windows里是这样的 Linux下是这样的 一般我在linu ...
- 真机在wifi下调试android程序
大家好,最近在学习android程序由于手机接口问题,调试程序的时候老是接触不良而不能正常调试,因此感到相当苦恼,于是在网上查找无线调试android的方法.经过研究和尝试现已成功无线调试程序,方法分 ...
- VS2010在非IE浏览器下调试Silverlight程序
以Chrome为例: 第一步:在程序中设置断点. 第二步:右键点击web应用程序的起始页(.html或.aspx文件),选择"浏览方式",选中Chrome或其它非IE浏览器,点&q ...
- ubuntu下调试ffmpeg程序出现undefined reference to pthread_once ,undefined reference to uncompress错误
Ubuntu(版本16.04)下默认配置编译Ffmpeg(版本4.1.3configure 添加选项--enable-threads),将编译好的ffmpeg库添加到程序 中进行编译出现undefin ...
- 使用JDB调试Java程序
Java程序中有逻辑错误,就需要使用JDB来进行调试了.调试程序在IDE中很方便了,比如这篇博客介绍了在Intellj IDEA中调试Java程序的方法. 我们课程内容推荐在Linux环境下学习,有同 ...
- WinDbg调试托管程序环境问题总结
基本环境搭建及安装 安装 有2个方式可以安装WinDbg. 新版 安装WinDbg Preview 在商店里搜WinDbg直接就可以安装,这里安装的版本是x64版本.x64版本的WinDbg其实是可以 ...
- netbeans 7安装xdebug调试php程序
1.下载安装xdebug 先从xdebug官网下载对应php版本的xdebug组件,下载地址是:http://www.xdebug.org/download.php 如果不确定下载哪个版本的xdebu ...
- 在netbeans下使用调试PHP的插件XdeBug
本人的开发环境: wamp最新官网wampserver2.2d-x32版. 下载点:http://nchc.dl.sourceforge.net/project/wampserver/WampServ ...
- 十分钟搞定mac下的phpstorm增加xdebug调试
一.版本信息 mac 10.10.5 php 5.5.38 phpstorm 10.0.3 xdebug 版本需要与php匹配,匹配地址 :点我匹配 点我查看所有版本 提示:不确定xdebug ...
随机推荐
- Swift 标签控制器(tabbar添加提醒和控制器)
// Override point for customization after application launch. //初始化window, 大小为设备物理大小 self.window = U ...
- BZOJ3033: 太鼓达人(欧拉回路)
Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 524 Solved: 400[Submit][Status][Discuss] Description ...
- BZOJ4917: [Lydsy1706月赛]Hash Killer IV(模拟)
4917: [Lydsy1706月赛]Hash Killer IV Time Limit: 1 Sec Memory Limit: 256 MBSubmit: 327 Solved: 140[Su ...
- k8s PersistentVolume hostpath 简单使用
kubernets host PersistentVolume 测试 因为yaml 格式的问题 ,我修改为了json 创建 pv pv.json { "kind": "P ...
- nexus bower 集成使用
创建nexus bower proxy host 比较简单,如下图: 安装bower && bower-nexus resolver npm install -g bower-nexu ...
- Hive之 hive-1.2.1 + hadoop 2.7.4 集群安装
一. 相关概念 Hive Metastore有三种配置方式,分别是: Embedded Metastore Database (Derby) 内嵌模式Local Metastore Server 本地 ...
- httpd编译安装
Apache安装问题:configure: error: APR not found . Please read the documentation: Linux上安装Apache时,编译出现错误: ...
- intellij系列ide配置
显示行号 搜索line number 在Editor,General,Appearance里面,勾选show line numbers 修改自体 sudo apt-get install fonts- ...
- cocos命令行生成项目
cocos命令行生成项目: cocos new GoodDay(项目名称) -p com.boleban.www(包名字) -l cpp(项目类型) -d D:\DevProject\cocos2dx ...
- Spring整合Hibernate,Druid(Maven)
本文转载自:http://blog.csdn.net/lantazy/article/details/52495839 首先,说一下spring,spring有很好的整合能力,Web应用的各个层次都能 ...