博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
zend studio xdebug设置断点无效解决方法
阅读量:4197 次
发布时间:2019-05-26

本文共 594 字,大约阅读时间需要 1 分钟。

 zend studio调试php程序有两种方式,debugger跟xdebug。我用的xdebug,环境配置完成后,手动设置断点无效,每次调试都在代码第一行停住。

当然这是因为勾选了break at first line的原因:

 

 如果没有勾选这个,调试无反应。首先检查php.ini中的xdebug配置,

xdebug.remote_host=192.168.1.103xdebug.remote_port=9000

 

IP地址和端口均正确,检查zend studio–>window–>preference–>debug下配置也正确,端口也是9000。再检查debug server段的配置,没有问题。

 

接着检查Path mapping时,发现问题:

 

其中的path on server的路径一定要填写你的调试文件所在的完整目录,比如apache的发布目录是d:www,调试文件是d:wwwwampwpsourceindex.php,那个这个path on server就要填写wampwpsource,如果填写有问题,就会出现断点设置无效的问题。当然断点无效还有别的原因,如果解决不了,欢迎一起讨论学习。

 

也就是说:Path Mapping里面的Path on server要设置相对路径,比如/htdocs,然后Local Path设置本地对应的路径,如D:\xampp\htdocs

转载地址:http://uuzli.baihongyu.com/

你可能感兴趣的文章
【一天一道LeetCode】#77. Combinations
查看>>
【一天一道LeetCode】#78. Subsets
查看>>
【一天一道LeetCode】#79. Word Search
查看>>
【一天一道LeetCode】#81. Search in Rotated Sorted Array II
查看>>
【数据结构与算法】深入浅出递归和迭代的通用转换思想
查看>>
【一天一道LeetCode】#83. Remove Duplicates from Sorted List
查看>>
【一天一道LeetCode】#91. Decode Ways
查看>>
【一天一道LeetCode】#92. Reverse Linked List II
查看>>
【一天一道LeetCode】#93. Restore IP Addresses
查看>>
【一天一道LeetCode】#94. Binary Tree Inorder Traversal
查看>>
【一天一道LeetCode】#112. Path Sum
查看>>
【一天一道LeetCode】#113. Path Sum II
查看>>
【一天一道LeetCode】#114. Flatten Binary Tree to Linked List
查看>>
【unix网络编程第三版】阅读笔记(二):套接字编程简介
查看>>
【一天一道LeetCode】#115. Distinct Subsequences
查看>>
【一天一道LeetCode】#116. Populating Next Right Pointers in Each Node
查看>>
【一天一道LeetCode】#117. Populating Next Right Pointers in Each Node II
查看>>
【一天一道LeetCode】#118. Pascal's Triangle
查看>>
【一天一道LeetCode】#119. Pascal's Triangle II
查看>>
【unix网络编程第三版】ubuntu端口占用问题
查看>>