Hello,
I’m trying to setup XDebug with VSCode and LocalByFlywheel.
I was wondering if anyone else here has done it and if they could point me to a tutorial on how to do it.
I followed this tutorial and all of my settings are the settings that are in the tutorial but whenever I set a breakpoint in VSCode while the debugger is running, my site doesn’t stop on the breakpoint.
This is what gets logged whenever I navigate to my site while XDebug and the debugger in VS Code is running.
new connection 7
<- threadEvent
ThreadEvent {
seq: 0,
type: 'event',
event: 'thread',
body: { reason: 'started', threadId: 7 } }
<- initializedEvent
InitializedEvent { seq: 0, type: 'event', event: 'initialized' }
-> setBreakpointsRequest
{ command: 'setBreakpoints',
arguments:
{ source:
{ name: 'header.php',
path:
'c:\\Users\\Rich Kastl\\Local Sites\\trenchless-clone\\app\\public\\wp-content\\themes\\trenchlesstechnology\\header.php' },
lines: [ 16 ],
breakpoints: [ { line: 16 } ],
sourceModified: false },
type: 'request',
seq: 39 }
<- setBreakpointsResponse
Response {
seq: 0,
type: 'response',
request_seq: 39,
command: 'setBreakpoints',
success: true,
body: { breakpoints: [ { verified: true, line: 16 } ] } }
-> setFunctionBreakpointsRequest
{ command: 'setFunctionBreakpoints',
arguments: { breakpoints: [] },
type: 'request',
seq: 40 }
<- setFunctionBreakpointsResponse
Response {
seq: 0,
type: 'response',
request_seq: 40,
command: 'setFunctionBreakpoints',
success: true,
body: { breakpoints: [] } }
-> setExceptionBreakpointsRequest
{ command: 'setExceptionBreakpoints',
arguments: { filters: [ '*' ] },
type: 'request',
seq: 41 }
<- setExceptionBreakpointsResponse
Response {
seq: 0,
type: 'response',
request_seq: 41,
command: 'setExceptionBreakpoints',
success: true }
-> configurationDoneRequest
{ command: 'configurationDone', type: 'request', seq: 42 }
-> threadsRequest
{ command: 'threads', type: 'request', seq: 43 }
<- threadsResponse
Response {
seq: 0,
type: 'response',
request_seq: 43,
command: 'threads',
success: true,
body:
{ threads: [ Thread { id: 7, name: 'Request 7 (4:38:02 PM)' } ] } }
<- configurationDoneResponse
Response {
seq: 0,
type: 'response',
request_seq: 42,
command: 'configurationDone',
success: true }
<- threadEvent
ThreadEvent {
seq: 0,
type: 'event',
event: 'thread',
body: { reason: 'exited', threadId: 7 } }
-> threadsRequest
{ command: 'threads', type: 'request', seq: 44 }
<- threadsResponse
Response {
seq: 0,
type: 'response',
request_seq: 44,
command: 'threads',
success: true,
body: { threads: [] } }
new connection 8
<- threadEvent
ThreadEvent {
seq: 0,
type: 'event',
event: 'thread',
body: { reason: 'started', threadId: 8 } }
<- initializedEvent
InitializedEvent { seq: 0, type: 'event', event: 'initialized' }
-> setBreakpointsRequest
{ command: 'setBreakpoints',
arguments:
{ source:
{ name: 'header.php',
path:
'c:\\Users\\Rich Kastl\\Local Sites\\trenchless-clone\\app\\public\\wp-content\\themes\\trenchlesstechnology\\header.php' },
lines: [ 16 ],
breakpoints: [ { line: 16 } ],
sourceModified: false },
type: 'request',
seq: 45 }
<- setBreakpointsResponse
Response {
seq: 0,
type: 'response',
request_seq: 45,
command: 'setBreakpoints',
success: true,
body: { breakpoints: [ { verified: true, line: 16 } ] } }
-> setFunctionBreakpointsRequest
{ command: 'setFunctionBreakpoints',
arguments: { breakpoints: [] },
type: 'request',
seq: 46 }
<- setFunctionBreakpointsResponse
Response {
seq: 0,
type: 'response',
request_seq: 46,
command: 'setFunctionBreakpoints',
success: true,
body: { breakpoints: [] } }
-> setExceptionBreakpointsRequest
{ command: 'setExceptionBreakpoints',
arguments: { filters: [ '*' ] },
type: 'request',
seq: 47 }
<- setExceptionBreakpointsResponse
Response {
seq: 0,
type: 'response',
request_seq: 47,
command: 'setExceptionBreakpoints',
success: true }
-> configurationDoneRequest
{ command: 'configurationDone', type: 'request', seq: 48 }
-> threadsRequest
{ command: 'threads', type: 'request', seq: 49 }
<- threadsResponse
Response {
seq: 0,
type: 'response',
request_seq: 49,
command: 'threads',
success: true,
body:
{ threads: [ Thread { id: 8, name: 'Request 8 (4:38:04 PM)' } ] } }
<- configurationDoneResponse
Response {
seq: 0,
type: 'response',
request_seq: 48,
command: 'configurationDone',
success: true }
<- threadEvent
ThreadEvent {
seq: 0,
type: 'event',
event: 'thread',
body: { reason: 'exited', threadId: 8 } }
-> threadsRequest
{ command: 'threads', type: 'request', seq: 50 }
<- threadsResponse
Response {
seq: 0,
type: 'response',
request_seq: 50,
command: 'threads',
success: true,
body: { threads: [] } }