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.

Vdebug closing as soon as it connects

See original GitHub issue

As soon as it finds a connection, vdebug closes and the page that’s loading just dies.

- [Debug] {Tue 20 2018 14:22:31} Setting buffer for DebuggerWatch: ['']
- [Debug] {Tue 20 2018 14:22:31} Setting buffer for DebuggerStack: ['']
- [Debug] {Tue 20 2018 14:22:31} Setting buffer for DebuggerStatus: ['Status: stopped', 'Listening on port', 'Not connected', '', 'Press <F5> to start debugging, <F6> to stop/close. Type :help Vdebug for more information.']
- [Info] {Tue 20 2018 14:22:32} Closing the connection
- [Debug] {Tue 20 2018 14:22:32} Command: stop -i 1
- [Debug] {Tue 20 2018 14:22:32} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stop" transaction_id="1" status="stopped" reason="ok"></response>
- [Debug] {Tue 20 2018 14:22:32} Closing the socket
- [Debug] {Tue 20 2018 14:22:32} Closing the socket
- [Debug] {Tue 20 2018 14:22:32} Creating hidden buffer: ['']
- [Debug] {Tue 20 2018 14:22:32} Creating hidden buffer: ['']
- [Debug] {Tue 20 2018 14:22:32} Creating hidden buffer: ['Status: stopped', 'Listening on port', 'Not connected', '', 'Press <F5> to start debugging, <F6> to stop/close. Type :help Vdebug for more information.']
- [Debug] {Tue 20 2018 14:22:32} Creating hidden buffer: [' 11000   | line        | /home/james/dev/myshopmanager/app/Http/Controllers/CampaignController.php:1072']
- [Debug] {Tue 20 2018 14:22:32} Creating hidden buffer: []
- [Debug] {Tue 20 2018 14:22:32} Creating hidden buffer: []
- [Debug] {Tue 20 2018 14:22:32} Closing the socket

PHP 7.2.3 Arch Linux (up to date) Vdebug is up to date Python 3

Let me know if I left out any important info!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:27 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
FatBoyXPCcommented, Mar 26, 2018

@BlackIkeEagle it looks like @sstutz figured it out. We both has some listchars going on in our vim configs. If I comment out this line:

set listchars=tab:›\ ,trail:•,extends:#,nbsp:. " Highlight problematic whitespace

Then it works!

I really want to keep this line there, though, as it makes certain things obvious when I’m editing files (mixed formatting, whitespace at EOL, etc).

0reactions
FatBoyXPCcommented, Mar 30, 2018

Works for me, I’ll nag @sstutz and see if I can get him to confirm as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xdebug starts the connection and than closes automatically
Xdebug will will show where it tries to connect (if it tries at all) and what the response is. I'm using IIS (Windows...
Read more >
Solution appears to close immediately after opening
I've found a workaround for this problem. Open visual Studio; Connect to your team project in Team Explorer; Open the project you wanted...
Read more >
web inspector disconnecting | Apple Developer Forums
Trying to debug a cordova app, debug build, installed from xcode. Sometimes, after ??? x trying it stays connected for a gracefull period...
Read more >
Troubleshoot Chrome crashes - Google Support
This error message occurs when a webpage doesn't display correctly. ... If you keep seeing the message, try closing other webpages that are...
Read more >
iOS App crashes immediately after debug start - Microsoft Q&A
The debugger starts, the application opens up but closes immediately after. The console of VS and the debugger do not show any output....
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