Giter Club home page Giter Club logo

Comments (19)

huanghantao avatar huanghantao commented on May 26, 2024 2

断点无效的原因,在软连接的目录里面进行了调试。v0.3.1支持上。

from yasd.

huanghantao avatar huanghantao commented on May 26, 2024

@jobinli 你好,请尝试一下分支fix-issue-41

from yasd.

jobinli avatar jobinli commented on May 26, 2024

你好。该分支在 yasd 项目目录下测试 test.php 可以正常运行。但是打开另一个文件夹进行测试就没有响应断点。

image

image

from yasd.

huanghantao avatar huanghantao commented on May 26, 2024

你应该为另一个项目换一个端口,否则IDE监听的端口会冲突。

from yasd.

jobinli avatar jobinli commented on May 26, 2024

我已经将上个监听停止了。每次都只运行一个监听。但是即使改端口也还是不响应。
image

from yasd.

huanghantao avatar huanghantao commented on May 26, 2024

Yasd的配置也得改。

from yasd.

jobinli avatar jobinli commented on May 26, 2024

恩。我使用 php -dyasd.remote_port=9001 -e test.php 来运行, launch.json 也都改为了 9001 端口。否则也会直接报错 Connection Failed: Connection refused 并终止运行了。

from yasd.

huanghantao avatar huanghantao commented on May 26, 2024

恩。我使用 php -dyasd.remote_port=9001 -e test.php 来运行, launch.json 也都改为了 9001 端口。否则也会直接报错 Connection Failed: Connection refused 并终止运行了。

额,所以这是解决了的意思?

from yasd.

jobinli avatar jobinli commented on May 26, 2024

并没有。除了在 yasd 项目下调试 test.php 正常,其他目录下都是不能正常响应断点。

from yasd.

jobinli avatar jobinli commented on May 26, 2024

怪哉。

simplescreenrecorder-2020-12-23_11.17.35.mp4

from yasd.

huanghantao avatar huanghantao commented on May 26, 2024

你这样配置launch.json:

{
            "name": "Listen for XDebug",
            "type": "php",
            "request": "launch",
            "port": 9000,
            "log": true
        },

配置端口继续用9000。然后把日志贴出来看看。

image

from yasd.

jobinli avatar jobinli commented on May 26, 2024
<- 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.

huanghantao avatar huanghantao commented on May 26, 2024

这一段好像有问题:

<- threadEvent
ThreadEvent {
  seq: 0,
  type: 'event',
  event: 'thread',
  body: { reason: 'exited', threadId: 1 }
}

你抓一下9000端口的包我看看?

from yasd.

huanghantao avatar huanghantao commented on May 26, 2024

你再更新下fix-issue-41分支的代码,看看有没有解决你的问题?

from yasd.

jobinli avatar jobinli commented on May 26, 2024

已更新 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.

huanghantao avatar huanghantao commented on May 26, 2024

已更新 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.

jobinli avatar jobinli commented on May 26, 2024

已通过邮件附件发送 [email protected]

from yasd.

huanghantao avatar huanghantao commented on May 26, 2024

已通过邮件附件发送 [email protected]

你好,能否加一个微信进行交流:codinghuang

from yasd.

huanghantao avatar huanghantao commented on May 26, 2024

软连接的目录应该是可以通过path mapping来解决。

from yasd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.