Comments (9)
I'm having troubles duplicating this issue, do you receive the ProtocolException every time you use Run To Line
or just occasionally?
Stop Debugging (Launch Browser)
opens a hanging on load in browser window, or Sublime Text is hanging and unable to open a browser? If it opens a browser window, what is the query (XDEBUG_SESSION_*) parameter?
Could you try to configure the browser_no_execute: true
in your settings and tell me if the browser window still hangs on Stop Debugging (Launch Browser)
Another possibility might be that Xdebug is not supporting your PHP (5.5) setup properly, it might help to update the Xdebug to version 2.2.3.
from sublimetextxdebug.
Sorry for the delay. I watched a little more closely what is happening.
The issue happens every time I use the Run To Line
command.
When I do so the Xdebug Context and Stack panels are empty and the console shows:
ValueError: invalid literal for int() with base 10: '\n<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command114695'.
I am then able to run the command again, this time I get the console message:
ProtocolException: Length mismatch encountered while reading the Xdebug message.
The third time the message is:
ValueError: invalid literal for int() with base 10: '\n<property name'.
Stop Debugging (Launch Browser)
opens a hanging browser window with the parameter XDEBUG_SESSION_STOP=sublime.xdebug
.
I tried the browser_no_execute: true
setting. This solves the problem with the hanging browser window (debugging is stopped), but the issue still remains: on Run To Line
no context, no stack. I am running PHP 5.3.5.
Looking at the first and third error message I suspect that there is still some problem with rendering ints as in issue #35.
I will try updating Xdebug and come back to you.
from sublimetextxdebug.
Updated to Xdebug 2.2.3; no change, the issue still stands. If you need any more info, please let me know.
from sublimetextxdebug.
Are you by any chance working with floating point numbers (floats) within your script?
It would help to know what is the full response that is returning the ValueError: invalid literal for int() with base 10:
.
Could you post the communication log regarding the debugging session.
You can get that by adding the xdebug.remote_log
option in your the xdebug *.ini configuration.
xdebug.remote_log="/tmp/xdebug.log"
from sublimetextxdebug.
The numbers in the context pane are all ints, though some arrays may contain floats.
How would I go about getting the full response at the error? The browser window is still waiting at that time, since I stopped execution on a line (this is in a symfony 1.4 action).
Here's a link to the xdebug.log http://pastelink.me/dl/e92144 (expires in 7 days), hope you can see some light in there.
from sublimetextxdebug.
I took a look at the log file, there is nothing out of the ordinary.
Can you please try executing the "Run To Line" command without any Watch expressions defined and see if the error occurs.
from sublimetextxdebug.
That doesn't change anything; I still get empty context panels.
from sublimetextxdebug.
To narrow down the issue I will try a simple php page without the Symfony framework. I'll get back to you.
from sublimetextxdebug.
@trebitzki Anything new since recent commits, does the issue still persist?
from sublimetextxdebug.
Related Issues (20)
- nat problem HOT 1
- Experience improvements
- break_on_exception: false not working HOT 1
- is path_skipping or similar possible with this plugin?
- All Xdebug panels are always empty HOT 2
- First Install Empty Windows HOT 1
- No debugging actions upon session start HOT 15
- Breakpoints triggered but continuation commands (run, step, stop) don't work HOT 2
- Xdebug Missing Continuous Commands HOT 5
- Connection succeeds and then immediately fails
- Breakpoints are skipped while debugging PHP application with Sublime Text 3 HOT 4
- No continuation commands on Xdebug Client HOT 9
- debugger stuck on warning without possibility to proceed further HOT 2
- Keeps disconnecting on Sublime Text 4 HOT 5
- Non ascii key raise exception
- New tabs opened by breakpoints are automatically scrolled to the bottom of the page HOT 1
- Can't install via Package Control in Sublime Text 4
- Update code and documentation to Sublime Text 4 and Xdebug 3 HOT 1
- Xdebug is not goving anything in xdebug content in sublime tabs, it is enable in php info as well.
- Start Debugging (Launch Browser) Missing while I have "url" set in .sublime-project file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublimetextxdebug.