Jump to content

Search the Community

Showing results for tags 'xdebug'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 3 results

  1. Hi all, I configured my localhost to work with Xdebug and then installed the plugins to work with note++. Everything worked fine and I got the sample two line program to work from the terminal as well as from a browser (chrome) by appending "?XDEBUG_SESSION_START=xyz" after the URL. It worked fine for small programs but for my multi-page application, the appended bit simply disappeared. I guess that's because of jumping to pages on menu clicks where the url is created depending upon the menu button being clicked. Code like : if(isset($_GET['menu_item'])) { $menu_item = fcheckPpage($_GET['menu_item']); switch ($menu_item) { case "menu1": require_once("/some/thing.php"); break; case "menu2": require_once("some/thingelse.php"); break; ... Then I tried the same on firefox by first installing the plugin for it which does not require any strings to be appended to the URL. That too got working but crashed each time at the very same place when it encountered the code shown above in the code box. These are the error messages that I got and It is clear that the the moment the application / program generated it's own url the link to the debugger is lost. Seems like a woeful limitation, I could try and append the XDEBUG... string to the end of each of the generated urls but that would not be a very pretty solution if that did work. If anyone has any suggestions or solutions or an alternative to this I will grateful. Thanks all.
  2. What is the best and easiest way to debug PHP code at run-time (step-over) with breakpoints. So that I can view the values on run-time and can debug easily. So, I want to know which php server and IDE works well with XDebug and easiest to configure with those. To be honest, I have tried 3-4 times in my life in last 7-8 years staring from win XP to Win 7 to setup xdebug with an IDE and a server and have failed, now again I need it in Win 8. I believe I can do it this time with your help. I just want any IDE with any server to work with xdebug in Win 8, so that I can pause execution at a break-point and see values of the variables. I do not even want to change values at run-time, just need to see those.
  3. I'm new to Xdebug. I've installed from source version 2.2.2 in linux and followed instructions from http://xdebug.org/docs/install to configure it. I can use debugclient and connect to server and issue commands. I can see Xdebug is present in Zend Engine v2.4.0 and enabled as extension with info.php output. When I request a recursive function to overpass xdebug.max_nesting_level=100 to throw an error there is no call stack in the browser. This are some directives I configured in php.ini: zend_extension=/usr/lib/php5/extensions/xdebug.so xdebug.remote_enable=On xdebug.remote_handler="dbgp" xdebug.remote_host="localhost" xdebug.dump.SERVER=* xdebug.dump.ENV=* xdebug.dump.REQUEST=* xdebug.scream=1 xdebug.default_enable=1 xdebug.dump_undefined=1 xdebug.auto_trace=On This is the function I expect to hit max_nesting_level so call stack should be showed: <?php function recursion($x ) { $x--; print "$x "; recursion($x); } recursion(250); ?> This is the output from apache2 I can see in the browser: 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 What directives am I missing that makes no call stack output on my browser?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.