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.

No debugging actions upon session start

See original GitHub issue

Upon starting debugging I am unable to run any of the commands in navigating the debugging screens. (Run, step_ver, step_into etc…). The debugging stops at the breakpoint and it’s unable to continue by any means. Using the command Xdebug: Session execute - to execute xdebug_continue the debugging process ends. With the current configuration, I have tried with NetBeans and the debugging works correctly. I am not sure if the configuration is the issue or plugin issue. Please if possible advice.

P.S. The path mapping is being used since if I map the same folder even though is local http server, I do not trigger debugging, the folder is a symlink to the one within the nginx shared folder. (usr/share/nginx/html/patterns/)

image

Environment

Sublime Text

Operating system: Linux - 4.19.24-1-MANJARO Installed version/build: 3.1.1 Python version: 3.7.3

Server

Operating system: local server, same as sublime text environment (using nginx as web server).

Are you trying to debug the script remotely or locally? - locally

PHP/Xdebug version: v2.7.0RC2

Configuration

php.ini/xdebug.ini

zend_extension=/usr/lib/php/modules/xdebug.so
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9002
xdebug.remote_handler=dbgp
xdebug.remote_mode = req
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
xdebug.idekey = sublime.xdebug
xdebug.remote_log = /home/dippy/logs/php/xdebug.log
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = on

Packages/User/Xdebug.sublime-settings

{
    "path_mapping": {
        "/usr/share/nginx/html/patterns" : "/home/dippy/Tutorials/patterns",
        "url": "http://dev.patterns.com/",
        "port": 9002,
        "super_globals": false,
    },
}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
alexkuccommented, Jun 23, 2019

I encountered the same issue and the fork provided by @gepeixoto worked for me

1reaction
meengitcommented, Mar 26, 2019

@Daniel-Yonkov, Python 2.7.12

However, I think it doesn’t matter. (Sublime is running locally and Xdebug remotely.) I have Docker containers running without Python where these settings work.

I usually advise the folks of my team to use my fork of this repository and then it works:

cmd+shift+p > “Package Control: Remove Package Xdebug Client”

Then:

cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
git clone https://github.com/meengit/SublimeTextXdebug.git "Xdebug Client"

& Sublime restart …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Start/pause/stop debug session | CLion Documentation
From the main menu, choose Run | Debugging Actions | Pause Program. Click the Pause icon on the Debug toolbar. Resume a debug...
Read more >
Debugging in Visual Studio Code
The Debug: Run (Start Without Debugging) action is triggered with Ctrl+F5 and uses the currently selected launch configuration. Many of the launch configuration ......
Read more >
Debugging doesn't start [closed] - Stack Overflow
First, in your project properties and in the Debug tab, make sure that your Start Action is set to Start Project and not...
Read more >
startSession not called when debug session started ... - GitHub
Steps to Reproduce: Register a startSession command in an extension. Register another command that calls vscode.startDebug . Launch extension; Start debug ...
Read more >
debug-action - IBM
Use the debug-action command to begin a debug session of a GatewayScript action in a processing policy. Use the no debug-action command to...
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