Comments (19)
断点无效的原因,在软连接的目录里面进行了调试。v0.3.1
支持上。
from yasd.
@jobinli 你好,请尝试一下分支fix-issue-41
from yasd.
你好。该分支在 yasd 项目目录下测试 test.php
可以正常运行。但是打开另一个文件夹进行测试就没有响应断点。
from yasd.
你应该为另一个项目换一个端口,否则IDE监听的端口会冲突。
from yasd.
我已经将上个监听停止了。每次都只运行一个监听。但是即使改端口也还是不响应。
from yasd.
Yasd
的配置也得改。
from yasd.
恩。我使用 php -dyasd.remote_port=9001 -e test.php
来运行, launch.json 也都改为了 9001 端口。否则也会直接报错 Connection Failed: Connection refused 并终止运行了。
from yasd.
恩。我使用
php -dyasd.remote_port=9001 -e test.php
来运行, launch.json 也都改为了 9001 端口。否则也会直接报错 Connection Failed: Connection refused 并终止运行了。
额,所以这是解决了的意思?
from yasd.
并没有。除了在 yasd
项目下调试 test.php 正常,其他目录下都是不能正常响应断点。
from yasd.
怪哉。
simplescreenrecorder-2020-12-23_11.17.35.mp4
from yasd.
你这样配置launch.json
:
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"log": true
},
配置端口继续用9000。然后把日志贴出来看看。
from yasd.
<- launchResponse
Response {
seq: 0,
type: 'response',
request_seq: 2,
command: 'launch',
success: true
}
new connection 1
<- threadEvent
ThreadEvent {
seq: 0,
type: 'event',
event: 'thread',
body: { reason: 'started', threadId: 1 }
}
<- initializedEvent
InitializedEvent { seq: 0, type: 'event', event: 'initialized' }
-> setBreakpointsRequest
{
command: 'setBreakpoints',
arguments: {
source: { name: 'test.php', path: '/home/jobin/www/html/test/test.php' },
lines: [ 3, 4 ],
breakpoints: [ { line: 3 }, { line: 4 } ],
sourceModified: false
},
type: 'request',
seq: 3
}
<- setBreakpointsResponse
Response {
seq: 0,
type: 'response',
request_seq: 3,
command: 'setBreakpoints',
success: true,
body: {
breakpoints: [ { verified: true, line: 3 }, { verified: true, line: 4 } ]
}
}
-> setFunctionBreakpointsRequest
{
command: 'setFunctionBreakpoints',
arguments: { breakpoints: [] },
type: 'request',
seq: 4
}
<- setFunctionBreakpointsResponse
Response {
seq: 0,
type: 'response',
request_seq: 4,
command: 'setFunctionBreakpoints',
success: true,
body: { breakpoints: [] }
}
-> setExceptionBreakpointsRequest
{
command: 'setExceptionBreakpoints',
arguments: { filters: [ '*' ] },
type: 'request',
seq: 5
}
<- setExceptionBreakpointsResponse
Response {
seq: 0,
type: 'response',
request_seq: 5,
command: 'setExceptionBreakpoints',
success: true
}
-> configurationDoneRequest
{ command: 'configurationDone', type: 'request', seq: 6 }
<- configurationDoneResponse
Response {
seq: 0,
type: 'response',
request_seq: 6,
command: 'configurationDone',
success: true
}
<- threadEvent
ThreadEvent {
seq: 0,
type: 'event',
event: 'thread',
body: { reason: 'exited', threadId: 1 }
}
-> threadsRequest
{ command: 'threads', type: 'request', seq: 7 }
<- threadsResponse
Response {
seq: 0,
type: 'response',
request_seq: 7,
command: 'threads',
success: true,
body: { threads: [] }
}
-> threadsRequest
{ command: 'threads', type: 'request', seq: 8 }
<- threadsResponse
Response {
seq: 0,
type: 'response',
request_seq: 8,
command: 'threads',
success: true,
body: { threads: [] }
}
from yasd.
这一段好像有问题:
<- threadEvent
ThreadEvent {
seq: 0,
type: 'event',
event: 'thread',
body: { reason: 'exited', threadId: 1 }
}
你抓一下9000
端口的包我看看?
from yasd.
你再更新下fix-issue-41
分支的代码,看看有没有解决你的问题?
from yasd.
已更新 fix-issue-41
分支进行测试。情况没有改变。
抓包信息如下
➜ test tcpdump -i lo tcp port 9000
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes
14:00:53.368405 IP localhost.59478 > localhost.9000: Flags [S], seq 3416986701, win 65495, options [mss 65495,sackOK,TS val 437152748 ecr 0,nop,wscale 7], length 0
14:00:53.368417 IP localhost.9000 > localhost.59478: Flags [S.], seq 1936415027, ack 3416986702, win 65483, options [mss 65495,sackOK,TS val 437152748 ecr 437152748,nop,wscale 7], length 0
14:00:53.368432 IP localhost.59478 > localhost.9000: Flags [.], ack 1, win 512, options [nop,nop,TS val 437152749 ecr 437152748], length 0
14:00:53.368510 IP localhost.59478 > localhost.9000: Flags [P.], seq 1:525, ack 1, win 512, options [nop,nop,TS val 437152749 ecr 437152748], length 524
14:00:53.373883 IP localhost.9000 > localhost.59478: Flags [P.], seq 1:22, ack 525, win 512, options [nop,nop,TS val 437152754 ecr 437152749], length 21
14:00:53.373903 IP localhost.59478 > localhost.9000: Flags [.], ack 22, win 512, options [nop,nop,TS val 437152754 ecr 437152754], length 0
14:00:53.374091 IP localhost.59478 > localhost.9000: Flags [P.], seq 525:709, ack 22, win 512, options [nop,nop,TS val 437152754 ecr 437152754], length 184
14:00:53.374099 IP localhost.9000 > localhost.59478: Flags [.], ack 709, win 511, options [nop,nop,TS val 437152754 ecr 437152754], length 0
14:00:53.374557 IP localhost.9000 > localhost.59478: Flags [P.], seq 22:100, ack 709, win 512, options [nop,nop,TS val 437152755 ecr 437152754], length 78
14:00:53.374623 IP localhost.59478 > localhost.9000: Flags [.], ack 100, win 512, options [nop,nop,TS val 437152755 ecr 437152755], length 0
14:00:53.374708 IP localhost.59478 > localhost.9000: Flags [P.], seq 709:907, ack 100, win 512, options [nop,nop,TS val 437152755 ecr 437152755], length 198
14:00:53.374713 IP localhost.9000 > localhost.59478: Flags [.], ack 907, win 511, options [nop,nop,TS val 437152755 ecr 437152755], length 0
14:00:53.374928 IP localhost.9000 > localhost.59478: Flags [P.], seq 100:178, ack 907, win 512, options [nop,nop,TS val 437152755 ecr 437152755], length 78
14:00:53.374936 IP localhost.59478 > localhost.9000: Flags [.], ack 178, win 512, options [nop,nop,TS val 437152755 ecr 437152755], length 0
14:00:53.375024 IP localhost.59478 > localhost.9000: Flags [P.], seq 907:1105, ack 178, win 512, options [nop,nop,TS val 437152755 ecr 437152755], length 198
14:00:53.375029 IP localhost.9000 > localhost.59478: Flags [.], ack 1105, win 511, options [nop,nop,TS val 437152755 ecr 437152755], length 0
14:00:53.382105 IP localhost.9000 > localhost.59478: Flags [P.], seq 178:199, ack 1105, win 512, options [nop,nop,TS val 437152762 ecr 437152755], length 21
14:00:53.382123 IP localhost.59478 > localhost.9000: Flags [.], ack 199, win 512, options [nop,nop,TS val 437152762 ecr 437152762], length 0
14:00:53.382375 IP localhost.59478 > localhost.9000: Flags [P.], seq 1105:1289, ack 199, win 512, options [nop,nop,TS val 437152762 ecr 437152762], length 184
14:00:53.382385 IP localhost.9000 > localhost.59478: Flags [.], ack 1289, win 511, options [nop,nop,TS val 437152762 ecr 437152762], length 0
14:00:53.393444 IP localhost.9000 > localhost.59478: Flags [P.], seq 199:220, ack 1289, win 512, options [nop,nop,TS val 437152773 ecr 437152762], length 21
14:00:53.393645 IP localhost.59478 > localhost.9000: Flags [P.], seq 1289:1473, ack 220, win 512, options [nop,nop,TS val 437152774 ecr 437152773], length 184
14:00:53.393661 IP localhost.9000 > localhost.59478: Flags [.], ack 1473, win 511, options [nop,nop,TS val 437152774 ecr 437152774], length 0
14:00:53.394170 IP localhost.9000 > localhost.59478: Flags [P.], seq 220:258, ack 1473, win 512, options [nop,nop,TS val 437152774 ecr 437152774], length 38
14:00:53.395025 IP localhost.59478 > localhost.9000: Flags [P.], seq 1473:1671, ack 258, win 512, options [nop,nop,TS val 437152775 ecr 437152774], length 198
14:00:53.395038 IP localhost.9000 > localhost.59478: Flags [.], ack 1671, win 511, options [nop,nop,TS val 437152775 ecr 437152775], length 0
14:00:53.398669 IP localhost.9000 > localhost.59478: Flags [P.], seq 258:267, ack 1671, win 512, options [nop,nop,TS val 437152779 ecr 437152775], length 9
14:00:53.398906 IP localhost.59478 > localhost.9000: Flags [P.], seq 1671:1873, ack 267, win 512, options [nop,nop,TS val 437152779 ecr 437152779], length 202
14:00:53.398916 IP localhost.9000 > localhost.59478: Flags [.], ack 1873, win 511, options [nop,nop,TS val 437152779 ecr 437152779], length 0
14:00:53.399506 IP localhost.9000 > localhost.59478: Flags [P.], seq 267:277, ack 1873, win 512, options [nop,nop,TS val 437152780 ecr 437152779], length 10
14:00:53.399597 IP localhost.59478 > localhost.9000: Flags [P.], seq 1873:2075, ack 277, win 512, options [nop,nop,TS val 437152780 ecr 437152780], length 202
14:00:53.399627 IP localhost.9000 > localhost.59478: Flags [.], ack 2075, win 512, options [nop,nop,TS val 437152780 ecr 437152780], length 0
14:00:53.400263 IP localhost.9000 > localhost.59478: Flags [F.], seq 277, ack 2075, win 512, options [nop,nop,TS val 437152780 ecr 437152780], length 0
14:00:53.405330 IP localhost.59478 > localhost.9000: Flags [F.], seq 2075, ack 278, win 512, options [nop,nop,TS val 437152785 ecr 437152780], length 0
14:00:53.405354 IP localhost.9000 > localhost.59478: Flags [.], ack 2076, win 512, options [nop,nop,TS val 437152785 ecr 437152785], length 0
from yasd.
已更新
fix-issue-41
分支进行测试。情况没有改变。
抓包信息如下➜ test tcpdump -i lo tcp port 9000 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes 14:00:53.368405 IP localhost.59478 > localhost.9000: Flags [S], seq 3416986701, win 65495, options [mss 65495,sackOK,TS val 437152748 ecr 0,nop,wscale 7], length 0 14:00:53.368417 IP localhost.9000 > localhost.59478: Flags [S.], seq 1936415027, ack 3416986702, win 65483, options [mss 65495,sackOK,TS val 437152748 ecr 437152748,nop,wscale 7], length 0 14:00:53.368432 IP localhost.59478 > localhost.9000: Flags [.], ack 1, win 512, options [nop,nop,TS val 437152749 ecr 437152748], length 0 14:00:53.368510 IP localhost.59478 > localhost.9000: Flags [P.], seq 1:525, ack 1, win 512, options [nop,nop,TS val 437152749 ecr 437152748], length 524 14:00:53.373883 IP localhost.9000 > localhost.59478: Flags [P.], seq 1:22, ack 525, win 512, options [nop,nop,TS val 437152754 ecr 437152749], length 21 14:00:53.373903 IP localhost.59478 > localhost.9000: Flags [.], ack 22, win 512, options [nop,nop,TS val 437152754 ecr 437152754], length 0 14:00:53.374091 IP localhost.59478 > localhost.9000: Flags [P.], seq 525:709, ack 22, win 512, options [nop,nop,TS val 437152754 ecr 437152754], length 184 14:00:53.374099 IP localhost.9000 > localhost.59478: Flags [.], ack 709, win 511, options [nop,nop,TS val 437152754 ecr 437152754], length 0 14:00:53.374557 IP localhost.9000 > localhost.59478: Flags [P.], seq 22:100, ack 709, win 512, options [nop,nop,TS val 437152755 ecr 437152754], length 78 14:00:53.374623 IP localhost.59478 > localhost.9000: Flags [.], ack 100, win 512, options [nop,nop,TS val 437152755 ecr 437152755], length 0 14:00:53.374708 IP localhost.59478 > localhost.9000: Flags [P.], seq 709:907, ack 100, win 512, options [nop,nop,TS val 437152755 ecr 437152755], length 198 14:00:53.374713 IP localhost.9000 > localhost.59478: Flags [.], ack 907, win 511, options [nop,nop,TS val 437152755 ecr 437152755], length 0 14:00:53.374928 IP localhost.9000 > localhost.59478: Flags [P.], seq 100:178, ack 907, win 512, options [nop,nop,TS val 437152755 ecr 437152755], length 78 14:00:53.374936 IP localhost.59478 > localhost.9000: Flags [.], ack 178, win 512, options [nop,nop,TS val 437152755 ecr 437152755], length 0 14:00:53.375024 IP localhost.59478 > localhost.9000: Flags [P.], seq 907:1105, ack 178, win 512, options [nop,nop,TS val 437152755 ecr 437152755], length 198 14:00:53.375029 IP localhost.9000 > localhost.59478: Flags [.], ack 1105, win 511, options [nop,nop,TS val 437152755 ecr 437152755], length 0 14:00:53.382105 IP localhost.9000 > localhost.59478: Flags [P.], seq 178:199, ack 1105, win 512, options [nop,nop,TS val 437152762 ecr 437152755], length 21 14:00:53.382123 IP localhost.59478 > localhost.9000: Flags [.], ack 199, win 512, options [nop,nop,TS val 437152762 ecr 437152762], length 0 14:00:53.382375 IP localhost.59478 > localhost.9000: Flags [P.], seq 1105:1289, ack 199, win 512, options [nop,nop,TS val 437152762 ecr 437152762], length 184 14:00:53.382385 IP localhost.9000 > localhost.59478: Flags [.], ack 1289, win 511, options [nop,nop,TS val 437152762 ecr 437152762], length 0 14:00:53.393444 IP localhost.9000 > localhost.59478: Flags [P.], seq 199:220, ack 1289, win 512, options [nop,nop,TS val 437152773 ecr 437152762], length 21 14:00:53.393645 IP localhost.59478 > localhost.9000: Flags [P.], seq 1289:1473, ack 220, win 512, options [nop,nop,TS val 437152774 ecr 437152773], length 184 14:00:53.393661 IP localhost.9000 > localhost.59478: Flags [.], ack 1473, win 511, options [nop,nop,TS val 437152774 ecr 437152774], length 0 14:00:53.394170 IP localhost.9000 > localhost.59478: Flags [P.], seq 220:258, ack 1473, win 512, options [nop,nop,TS val 437152774 ecr 437152774], length 38 14:00:53.395025 IP localhost.59478 > localhost.9000: Flags [P.], seq 1473:1671, ack 258, win 512, options [nop,nop,TS val 437152775 ecr 437152774], length 198 14:00:53.395038 IP localhost.9000 > localhost.59478: Flags [.], ack 1671, win 511, options [nop,nop,TS val 437152775 ecr 437152775], length 0 14:00:53.398669 IP localhost.9000 > localhost.59478: Flags [P.], seq 258:267, ack 1671, win 512, options [nop,nop,TS val 437152779 ecr 437152775], length 9 14:00:53.398906 IP localhost.59478 > localhost.9000: Flags [P.], seq 1671:1873, ack 267, win 512, options [nop,nop,TS val 437152779 ecr 437152779], length 202 14:00:53.398916 IP localhost.9000 > localhost.59478: Flags [.], ack 1873, win 511, options [nop,nop,TS val 437152779 ecr 437152779], length 0 14:00:53.399506 IP localhost.9000 > localhost.59478: Flags [P.], seq 267:277, ack 1873, win 512, options [nop,nop,TS val 437152780 ecr 437152779], length 10 14:00:53.399597 IP localhost.59478 > localhost.9000: Flags [P.], seq 1873:2075, ack 277, win 512, options [nop,nop,TS val 437152780 ecr 437152780], length 202 14:00:53.399627 IP localhost.9000 > localhost.59478: Flags [.], ack 2075, win 512, options [nop,nop,TS val 437152780 ecr 437152780], length 0 14:00:53.400263 IP localhost.9000 > localhost.59478: Flags [F.], seq 277, ack 2075, win 512, options [nop,nop,TS val 437152780 ecr 437152780], length 0 14:00:53.405330 IP localhost.59478 > localhost.9000: Flags [F.], seq 2075, ack 278, win 512, options [nop,nop,TS val 437152785 ecr 437152780], length 0 14:00:53.405354 IP localhost.9000 > localhost.59478: Flags [.], ack 2076, win 512, options [nop,nop,TS val 437152785 ecr 437152785], length 0
能否存成.pcap
文件?
from yasd.
已通过邮件附件发送 [email protected]
from yasd.
已通过邮件附件发送 [email protected]
你好,能否加一个微信进行交流:codinghuang
from yasd.
软连接的目录应该是可以通过path mapping
来解决。
from yasd.
Related Issues (20)
- macos(M1X) + yasd + hyperf debug报错 HOT 5
- Undefined constant "request" HOT 3
- 请问下怎么解决单元测试覆盖率问题 HOT 5
- "php -e" debug with VsCode and Docker Alpine error "Segmentation fault" HOT 1
- Can not check the value of static variables in a class HOT 1
- M2 编译失败(M2 Compilation fails) HOT 9
- 能够进入,但是执行下一步,就会报这个错误。php代码没问题。 HOT 15
- Undefined constant "this" in yasd://debug-eval:1 HOT 5
- 大佬 这个报错啥原因呢 HOT 1
- It's not possible to compile in the php:8.1-cli-alpine3.17 HOT 1
- centos7 php7.2下编译失败
- output:Segmentation fault HOT 10
- There is an error in the compilation(make) HOT 3
- mark error ( errors generated. make: *** [src/remote_debugger.lo] Error 1 ) HOT 2
- make test 失败率90% ,php -e 报Segmentation fault 安装完后不能正常使用。 HOT 2
- centos7编译安装成功,配置文件也已加上扩展,但是php --ri yasd没有相关信息 HOT 1
- 我用sdebug时可以将hyperf断点停在vendor的Server.php中的sortServers函数里,但是使用yasd不行,是我哪里配置不对吗? HOT 2
- centos7系统下php8.2.4 make 报错 HOT 1
- 'zend_string *' (aka '_zend_string *') from 'char *' HOT 1
- 希望可以支持php7.1版本
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yasd.