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.

Breakpoints not hit

See original GitHub issue

I bet you’re sick of hearing from me 😃

I have followed your installation instructions for yesterday’s update, but nothing I try makes breakpoints get hit. The context and stack windows remain empty, but the following message is displayed in the status bar every time I refresh the page:

image

This is with or without ?XDEBUG_SESSION_START=sublime.xdebug, restarted webserver, double-checked php.ini… I can’t think of anything else, please advise.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
rogerywoocommented, Oct 3, 2016

I was having the same problem. The application was breaking in the breakpoint, but the little yellow arrow as not being displayed. After working on it for several hours, Martomo comment on path_mapping gave me an idea. The path mapping is CASE SENSITIVE. I had /home/vagrant/PhpProject/. The folder in the virtualbox was phpproject.

1reaction
martomocommented, Jun 27, 2013

Some web applications will catch and parse the URI, which contains the ?XDEBUG_SESSION_START, resulting the server not being able to receive it. Try to use browser extensions to send the XDEBUG_SESSION_START through REQUEST, for example Xdebug Helper extension for Chrome

If the script you are trying to debug is on a remote server, use the path_mapping in Xdebug.sublime-settings as shown below.

{
    ...
    "path_mapping": {
        "/path/to/file/on/server" : "/path/to/file/on/computer"
    }
    ...
}

Also I would suggest to check the firewall settings, make sure plugin_host(.exe) has the valid rights for listening to the debugging port and/or no other IDE is also listening to this port.

It is indeed curious that the breakpoint icon turned from grey to gold, without any context/stack data.

I will try to see I can reproduce this issue within a virtual machine running Ubuntu 13.04.

Another solution might be, but this limits Xdebug to only one remote host is to configure your IP address in php.ini:

[xdebug]
zend_extension = /absolute/path/to/your/xdebug-extension.so
xdebug.remote_enable = 1
xdebug.remote_host = "192.168.1.10" ; Set this IP address of the device which is running Sublime Text
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.remote_mode = req
Read more comments on GitHub >

github_iconTop Results From Across the Web

break point is not hitting while debugging - Stack Overflow
1- Right mouse click your project · 2- select [Properties] · 3- select [Build] tab · 4- make sure [Define DEBUG constant] and...
Read more >
Troubleshoot Breakpoints in the Visual Studio Debugger
If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the...
Read more >
If breakpoints are not hit when debugging | GE Digital
Breakpoints should be used and hit when debugging. If your breakpoints are not hit during a debugging session, follow the information below to...
Read more >
BreakPoints Are Not Working in Visual Studio - C# Corner
BreakPoints Are Not Working in Visual Studio · Right-click on your project. · Select [Properties]. · Select the [Build] tab. · Ensure [Define...
Read more >
Debugger not hitting breakpoints - Visual Studio Feedback
I resolved the former problems by installing Visual Studio Tools for Unity. However, when I set a breakpoint, they are not being hit....
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