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

  • SEARCH
  • Home
  • 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 8609349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:51:55+00:00 2026-06-12T03:51:55+00:00

I have a really slow script from someone else that I need to profile

  • 0

I have a really slow script from someone else that I need to profile to speed up, I have followed numerous tutorials however it keeps leading to the same step.

I have downloaded the appropriate binary from xDebug’s site, by copying the phpinfo into Xdebug’s website find_binary.php search functionality.

I have a seemingly correct setup.

Notepad++ (NPP) is configured to connect to Xdebug via 127.0.0.1:9000 with the specified IDE key.

The following is the section of php.ini specific to xdebug.

[xdebug]
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

I am using PHP 5.4.4.

My phpinfo output does not mention Xdebug.

  • 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-12T03:51:56+00:00Added an answer on June 12, 2026 at 3:51 am

    For windows with php5.3 and up you need to use zend_extension instead of zend_extension_ts in your php.ini file.

    Example

    zend_extension="C:\xampp\php\ext\php_xdebug.dll"
    

    If you use the xdebug wizard http://xdebug.org/wizard.php and you get this message
    Xdebug is only loaded as PHP extension and not as a Zend Extension
    It is because of using zend_extension_ts (I think).

    Another thing to note.

    You won’t see anything in notepad if you don’t set breakpoints in the code you are testing. It will run so fast that it will seem like it is not working (if you watch carefully though, notepad plus will flash). Took me a long time to realize that.

    Thirdly

    I would recommend downloading the latest xdebug.dll for your system
    available from http://xdebug.org/download.php

    xdebug has only been compatible with php 5.4 since [2012-05-08] – Xdebug 2.2.0
    The latest version is Xdebug 2.2.1

    I’d also recommend using the latest version of DBDG plugin (notepad plus requires this file to work with Xdebug) from http://sourceforge.net/projects/npp-plugins/files/DBGP%20Plugin/

    ANOTHER THING

    EDIT: Just noticed your using XAMPSERVER,but I’ll leave it in case it is useful for someone else. If you are using wampserver 2.2, xdebug is preinstalled. This might be causing problems if you manually installed xdebug again later and manage to have 2 versions installed or something crazy like that.

    My last working php.ini file for xdebug

    Please note my last version was working, albeit very slowly. In the php.ini I have the ide set to xdebug, but I could call it any session name I wanted and it worked. You probably don’t need all of the info I’ve posted below and you will most likely need to change the file path and file name. I was using D drive.

    [xdebug]
    
    ;for windows with php5.3 and up you need to use zend_extension instead of zend_extension_ts
    zend_extension="D:\wamp\bin\php\php5.4.3\ext\php_xdebug-2.2.1-5.4-vc9-x86_64.dll"
    xdebug.remote_autostart=on
    xdebug.profiler_output_dir = "d:/wamp/tmp/xdebug"
    xdebug.profiler_output_name = "cachegrind.out.%p"
    xdebug.profiler_enable = 1
    xdebug.profiler_append=0
    xdebug.extended_info=1
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp
    xdebug.remote_mode=req
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.idekey=xdebug
    xdebug.remote_log="d:/wamp/tmp/xdebug/xdebug_remot.log"
    xdebug.show_exception_trace=On
    xdebug.show_local_vars=9
    xdebug.show_mem_delta=0
    xdebug.trace_format=0
    

    enter image description here

    LASTLY

    Don’t forget to use ?XDEBUG_SESSION_START=sessionname at the end of the url address of the code you wish to test.

    EXAMPLE

    http://localhost/codetotest.php?XDEBUG_SESSION_START=xdebug
    

    Also restart your server’s services after making any changes else they won’t take effect.

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

Sidebar

Related Questions

I have a LINQ to Entity query that is running really slow. This query
A lot of people have said that ArrayList.removeAll is really slow with large size
I'm trying to cache JSON content generated by a php script from database. However
Currently I have a script to cycle over 10M records, it's very slow and
Friends, My issue is that my page is really slow to load, because all
I'm working on a script that takes the elements from companies and pairs them
I have a server (VPS) that hosts numerous PHP / MySQL websites. Most are
I have a problem with Entity Framework. It's really slow to refresh the model
I have this problem that is really causing me headeches whenever i'm designing my
I have a bash script that calls a program which generates a humongous amount

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.