question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xdebug Missing Continuous Commands

See original GitHub issue

I added a breakpoint in a file. When I start debugging and open the browser, the Xdebug panels shows up correctly, it stops at the first breakpoint with context shown, the server hangs. However, it doesn’t open up the window to show current running line and the continuation commands are missing, which means I cannot run to next breakpoint or step to the next line. I also tried the short key Ctrl+Shift+F5, not working. But, i have Evaluate, Execute, Status. After I stop debugging, the website is loaded correctly. Xdebug

Environment

Sublime Text

Operating system:

Ubuntu 16.04.6 LTS (Xenial Xerus) Installed version/build:

Sublime Text Build 3200 Python version:

Python 2.7.12

Server

PHP/Xdebug version:

PHP 7.3.3-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Mar 7 2019 20:31:26) ( NTS ) Copyright © 1997-2018 The PHP Group Zend Engine v3.3.3, Copyright © 1998-2018 Zend Technologies with Zend OPcache v7.3.3-1+ubuntu16.04.1+deb.sury.org+1, Copyright © 1999-2018, by Zend Technologies with Xdebug v2.7.0, Copyright © 2002-2019, by Derick Rethans

Configuration

php.ini/xdebug.ini

[xdebug]
# ...
zend_extension=/usr/lib/php/20180731/xdebug.so
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_log = /tmp/xdebug.log
xdebug.remote_mode = req
xdebug.remote_port = 9000

Packages/User/Xdebug.sublime-settings

{
    "path_mapping": {
    },
    "url": "http://localhost/subscription/",
    "ide_key": "sublime.xdebug",
    "host": "localhost",
    "port": 9000,
    "max_children": 32,
    "max_data": 1024,
    "max_depth": 3,
    "break_on_start": false,
    "break_on_exception": [
        "Fatal error",
        "Catchable fatal error",
        "Warning",
        "Parse error",
        "Notice",
        "Strict standards",
        "Deprecated",
        "Xdebug",
        "Unknown error"
    ],
    "close_on_stop": false,
    "super_globals": true,
    "fullname_property": true,
    "hide_password": false,
    "pretty_output": false,
    "launch_browser": true,
    "browser_no_execute": false,
    "disable_layout": false,
    "debug_layout" : {
        "cols": [0.0, 0.5, 1.0],
        "rows": [0.0, 0.7, 1.0],
        "cells": [[0, 0, 2, 1], [0, 1, 1, 2], [1, 1, 2, 2]]
    },
    "breakpoint_group": 2,
    "breakpoint_index": 1,
    "context_group": 1,
    "context_index": 0,
    "stack_group": 2,
    "stack_index": 0,
    "watch_group": 1,
    "watch_index": 1,
    "breakpoint_enabled": "circle",
    "breakpoint_disabled": "dot",
    "breakpoint_current": "",
    "current_line": "bookmark",
    "python_path" : "",
    "debug": false
}

*.sublime-project

{
	"folders":
	[
		{
			"follow_symlinks": true,
            "path": "/var/www/html/subscription"
		}
	],
    "settings": {
        "xdebug": {
             "url": "http://localhost/subscription"
        }
    }
}

Logs

Console output:

startup, version: 3200 linux x64 channel: stable
executable: /opt/sublime_text/sublime_text
working dir: /
packages path: /home/.config/sublime-text-3/Packages
state path: /home/.config/sublime-text-3/Local
zip path: /opt/sublime_text/Packages
zip path: /home/.config/sublime-text-3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.128594
startup time: 0.337649
first paint time: 0.380693
git: tracking working dir /var/www/html/subscription
reloading plugin Default.arithmetic
...
plugins loaded
git: untracking working dir /var/www/html/subscription
Package Control: Skipping automatic upgrade

Packages/User/Xdebug.log:

Xdebug.log



Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
gepeixotocommented, Apr 19, 2019

I’ve fixed the problem. You can clone from my fork: https://github.com/gepeixoto/SublimeTextXdebug.git

1reaction
x558licommented, Apr 2, 2019

I tried https://github.com/martomo/SublimeTextXdebug/issues/184. After changing protocol.py, the menu showed up but turned grey, so I cannot even start debugging.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation » Installation - Xdebug
You can install Xdebug through PECL on Linux & macOS with Homebrew. Prerequisites: macOS: Xcode's command line tools (run: xcode-select -- ...
Read more >
xdebug remote debugging won't stop at breakpoints
I had this problem and took me ages to find the answer. In your debug config, in the server area, click Configure, go...
Read more >
Xdebug Support - Reward Documentation
Debugging PHP CLI Commands/Scripts#. You can also debug PHP command line scripts using the following method. # Open a shell in the environment...
Read more >
Learn How to Debug PHP with Xdebug and VsCode
A: To resolve he PHP debugger not installed error, check the file in your C:/php/ext/ directory, which may contain some missing or wrong ......
Read more >
Support Xdebug 3 · Issue #2718 · lando/lando - GitHub
Xdebug 3 is out and comes with a lot of performance optimization - see: ... Thanks @ds-santos, I was missing that xdebug: true...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found