Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9037513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:15:49+00:00 2026-06-16T09:15:49+00:00

UPDATE: I’ve spent way too much time on this and have decided to ditch

  • 0

UPDATE:

I’ve spent way too much time on this and have decided to ditch it and continue using the clunky NetBeans.

ORIGINAL QUESTION:

I’m having some difficulty getting xdebug to work with sublime text 2.

What I have done so far is install:

  1. LAMP,
  2. php5-xdebug
  3. python2.6
  4. sublime-text-2
  5. sublimexdebug

If I then use sublime to open a php file and press shift+f8, the xdebug menu pops up from which I can add/remove breakpoint and also start debugging.

Some php:
Some php

Menu drops down when I press shift+f8:
Menu drops down when I press shift+f8

Debugging started:

enter image description here

In that image it says:

Xdebug: No URL defined in project settings file

Info.sublime-project contains:

{
    "folders":
    [
        {
            "path": "/var/www"
        }
    ],

    "settings": {
        "xdebug": { "url": "http://localhost" }
    }
}

As you can see from the 3rd screenshot, I have started debugging and nothing happens, no errors, no browser window opens, nothing. If I manually navigate to localhost/info.php, the page loads as normal. If I manually add ?XDEBUG_SESSION_START=sublime.xdebug to the end of the url so localhost/info.php?XDEBUG_SESSION_START=sublime.xdebug and hit refresh on the browser, the page loads as normal and debugging still doesn’t start.

What am I doing wrong?

UPDATE: Some info about ports:

Before trying to start xdebug via sublime text 2

oshirowanen@ubuntu:~$ netstat -antp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -                 
tcp        0      0 90.190.20.220:54913     90.180.80.70:443        ESTABLISHED 2439/python     
tcp        0      0 90.190.20.220:51727     190.40.210.160:443      TIME_WAIT   -               
tcp        1      0 90.190.20.220:50967     90.180.90.20:80         CLOSE_WAIT  2349/ubuntu-geoip-p
tcp6       0      0 :::80                   :::*                    LISTEN      -               
oshirowanen@ubuntu:~$ 

After starting chromium manually and starting xdebug via sublime text 2

oshirowanen@ubuntu:~$ netstat -antp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:17500           0.0.0.0:*               LISTEN      2241/dropbox    
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:59424         127.0.0.1:80            ESTABLISHED 2924/chromium-brows
tcp        0      0 127.0.0.1:43123         127.0.0.1:9000          ESTABLISHED -               
tcp        0      0 127.0.0.1:9000          127.0.0.1:43123         ESTABLISHED 2903/sublime_text
tcp        0      0 90.190.20.220:40809     170.190.40.70:443       ESTABLISHED 2924/chromium-brows
tcp        0      0 90.190.20.220:54913     90.180.80.70:443        ESTABLISHED 2439/python     
tcp        0      0 90.190.20.220:43900     170.190.70.90:443       ESTABLISHED 2924/chromium-brows
tcp        0      0 90.190.20.220:35259     170.190.70.100:443      ESTABLISHED 2924/chromium-brows
tcp        0      0 127.0.0.1:59426         127.0.0.1:80            TIME_WAIT   -               
tcp        0      0 90.190.20.220:37922     170.190.70.90:443       ESTABLISHED 2924/chromium-brows
tcp        1      0 90.190.20.220:50967     90.180.90.20:80         CLOSE_WAIT  2349/ubuntu-geoip-p
tcp        0      0 90.190.20.220:40847     170.190.40.60:80        ESTABLISHED 2924/chromium-brows
tcp6       0      0 :::80                   :::*                    LISTEN      -               
tcp6       0      0 127.0.0.1:80            127.0.0.1:59423         TIME_WAIT   -               
tcp6       0      0 127.0.0.1:80            127.0.0.1:59424         ESTABLISHED -               
oshirowanen@ubuntu:~$ 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T09:15:50+00:00Added an answer on June 16, 2026 at 9:15 am

    Some tips:

    1. Check that Xdebug is running checking the information generated by the phpinfo command.

    2. Enable remote debugging in the xdebug configuration (and verify again with the phpinfo command):

      xdebug.remote_enable=1

    3. I don’t use the xdebug setting in Sublime Text. I think it is not necessary.

    4. Open the console in Sublime Text. Any problem is logged in the console. There are some problems in Ubuntu reported in the pulgin homepage.

    5. I use a browser extension to activate or deactivate the debugging. In Chrome look for “Xdebug Helper for Chrome”. You need to configure the cookie name as “sublime.xdebug”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE: I now have a solution I'm much happier with that, whilst not solving
[update: I am using MySQL 4.1.25 ] I think this must be a simple
UPDATE May this post be helpful for coders using RichTextBoxes. The Match is correct
UPDATE: I think I have answered most of this question now, except the handling
Update: Is there a way to achieve what I'm trying to do in an
Update: I reported this as a bug to Apple and they fixed it! All
UPDATE: I've been playing around with this more, and it seems like tmux's clear-history
Update : This is no longer an issue from C# 6, which has introduced
UPDATE 6/21/12 I have a form in rails that is working similar to an
UPDATE: I'm getting this error: (No route matches /docs/index.html... ) when accessing admin.example.com/docs/index.html The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.