Giter Site home page Giter Site logo

Comments (9)

martomo avatar martomo commented on August 19, 2024

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.

trebitzki avatar trebitzki commented on August 19, 2024

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.

trebitzki avatar trebitzki commented on August 19, 2024

Updated to Xdebug 2.2.3; no change, the issue still stands. If you need any more info, please let me know.

from sublimetextxdebug.

martomo avatar martomo commented on August 19, 2024

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.

trebitzki avatar trebitzki commented on August 19, 2024

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.

martomo avatar martomo commented on August 19, 2024

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.

trebitzki avatar trebitzki commented on August 19, 2024

That doesn't change anything; I still get empty context panels.

from sublimetextxdebug.

trebitzki avatar trebitzki commented on August 19, 2024

To narrow down the issue I will try a simple php page without the Symfony framework. I'll get back to you.

from sublimetextxdebug.

martomo avatar martomo commented on August 19, 2024

@trebitzki Anything new since recent commits, does the issue still persist?

from sublimetextxdebug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.