Skip to content

Debugger "crashes" #7325

Description

@felixfbecker

vscode-php-debug stopped working after VS Code 1.2, see xdebug/vscode-php-debug#39. The debug section and breakpoint markers disappear after the second step over. The requests send by the adapter seem to be completely fine though:

-> nextRequest
{ type: 'request',
  seq: 13,
  command: 'next',
  arguments: { threadId: 1 } }
<- outputEvent
OutputEvent {
  seq: 0,
  type: 'event',
  event: 'output',
  body: { category: 'stdout', output: 'hello' } }
hello
<- stoppedEvent
StoppedEvent {
  seq: 0,
  type: 'event',
  event: 'stopped',
  body: { reason: 'step', threadId: 1, allThreadsStopped: false } }
<- nextResponse
Response {
  seq: 0,
  type: 'response',
  request_seq: 13,
  command: 'next',
  success: true,
  body: { allThreadsContinued: false } }
-> threadsRequest
{ type: 'request', seq: 14, command: 'threads' }
<- threadsResponse
Response {
  seq: 0,
  type: 'response',
  request_seq: 14,
  command: 'threads',
  success: true,
  body: { threads: [ Thread { id: 1, name: 'Request 1 (3:17:24 PM)' } ] } }
-> stackTraceRequest
{ type: 'request',
  seq: 15,
  command: 'stackTrace',
  arguments: { threadId: 1, startFrame: 0, levels: 20 } }
<- stackTraceResponse
Response {
  seq: 0,
  type: 'response',
  request_seq: 15,
  command: 'stackTrace',
  success: true,
  body: 
   { stackFrames: 
      [ StackFrame {
          id: 2,
          source: 
           Source {
             name: 'hello_world.php',
             path: 'C:\\Users\\felix\\git\\OpenSource\\vscode-php-debug\\testproject\\hello_world.php',
             sourceReference: 0 },
          line: 4,
          column: 1,
          name: '{main}' } ] } }
-> scopesRequest
{ type: 'request',
  seq: 16,
  command: 'scopes',
  arguments: { frameId: 2 } }
<- scopesResponse
Response {
  seq: 0,
  type: 'response',
  request_seq: 16,
  command: 'scopes',
  success: true,
  body: 
   { scopes: 
      [ Scope { name: 'Locals', variablesReference: 4, expensive: false },
        Scope { name: 'Superglobals', variablesReference: 5, expensive: false },
        Scope {
          name: 'User defined constants',
          variablesReference: 6,
          expensive: false } ] } }
-> variablesRequest
{ type: 'request',
  seq: 17,
  command: 'variables',
  arguments: { variablesReference: 4 } }
<- variablesResponse
Response {
  seq: 0,
  type: 'response',
  request_seq: 17,
  command: 'variables',
  success: true,
  body: { variables: [] } }

VS Code just doesnt display anything anymore. Could it have something todo with the async events? Sometimes events are sent in between a request and a response

@weinand

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions