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.

Connects but nothing happens

See original GitHub issue

Hello,

I’m trying to get this package working so I could pretty much ditch my old IDE for pure Sublime Text.

I use this configuration for xdebug:

zend_extension=/usr/lib/php/modules/xdebug.so
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_mode=req
xdebug.idekey=sublime.xdebug

And this is configuration for Sublime Text:

{
    "port": 9000, 
    "close_on_stop": true,
    "max_depth": 3,
    "max_children": 32
}

And after adding a breakpoint using the command pallet (I can see the grey dot for the breakpoint) and starting Debugging with the same way, I hit the URL with XDEBUG_SESSION_START=1 at the end of the URL (I have other params in my URL).

I see the status bar says Xdebug: Connected and when checking port 9000 I can really see it’s indeed connected:

$ netstat -an | grep 9000
tcp        0      0 127.0.0.1:9000          127.0.0.1:52515         ESTABLISHED
tcp        0      0 127.0.0.1:52515         127.0.0.1:9000          ESTABLISHED

But than nothing else happens and the request gets stuck in the browser and never reaches the breakpoint.

Is there something I’m missing?

Thanks!

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:33 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
hworldcommented, Jul 24, 2013

Try changing things to port 9001? Was having same problem and that worked for me…

0reactions
aneetkukreja1commented, Aug 20, 2019

Check sublime terminal (Ctrl + ~) if it shows error like xdebug xml.etree.ElementTree.ParseError: not well-formed (invalid token) then it is issue of sublime xdebug client installed through sublime package manager.

  1. Uninstall xdebug client installed through Package manager Preferences > Package control > remove package > xdebug client

  2. Quit sublime

  3. Install client manually through source code Get fixed source code of xdebug client from https://github.com/gepeixoto/SublimeTextXdebug.git

  • Download source code (do not follow install instructions, just download raw source code)
  • Copy source code directory to sublime packages directory. In mac it is here /users/[username]/library/Application Support/Sublime Text 3/Packages/
Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Troubleshooting Tips If Your Internet Is Connected But Not ...
If not, the router has no connection to the internet and your ISP is probably at fault. Start by simply unplugging it, waiting...
Read more >
Connected to Wi-Fi, but No Internet Access in Windows? What ...
Seeing the annoying "connected but no internet" error on your Windows PC? Follow these steps when you have no internet access.
Read more >
WiFi Connected But No Internet? (Reasons and Fixes)
If all of your devices on the network have a WiFi connection but they do not have access to the web, your router...
Read more >
WiFi connected but no Internet? Fix it in 5 min! - LazyAdmin
If no one can connect to the internet then you will have to look for the problem in the router or access point....
Read more >
PC is connected to the internet, but nothing will load
Try plugging in by ethernet cable to the router to compare, then plug the ethernet cable into the modem (if separate) to see...
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