[{"data":1,"prerenderedAt":290},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2009\u002F01\u002F10\u002Frunning-xdebug-2-0-4-on-osx-leopard-apache-php\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":273,"date":274,"description":275,"embedImage":273,"extension":276,"image":273,"intro":273,"meta":277,"navigation":278,"path":279,"seo":280,"series":273,"sitemap":281,"stem":282,"tags":283,"__hash__":289},"content\u002F2009\u002F01\u002F10\u002Frunning-xdebug-2-0-4-on-osx-leopard-apache-php.md","Running xdebug 2.0.4 on OSX Leopard apache\u002Fphp",{"type":208,"value":209,"toc":270},"minimark",[210,224,235,238,244,247,253,256,262],[211,212,213,214,223],"p",{},"This is based on the information on ",[215,216,217],"a",{"href":217,"rel":218,"target":222},"http:\u002F\u002Fdevelopers.sugarcrm.com\u002Fwordpress\u002F2008\u002F11\u002F25\u002Fenabling-xdebug-under-os-x-leopard\u002F",[219,220,221],"nofollow","noopener","noreferer","_blank",".\nDownload xdebug 2.0.4 (or later - but this is based on the 2.0.4 build) - extract it.",[225,226,231],"pre",{"className":227,"code":229,"language":230},[228],"language-text","phpize\nMACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS=&quot;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os \\\n     -pipe -no-cpp-precomp&quot; CCFLAGS=&quot;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe&quot; \\\n     CXXFLAGS=&quot;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe&quot; LDFLAGS=&quot;-arch ppc \\\n     -arch ppc64 -arch i386 -arch x86_64 -bind_at_load&quot; .\u002Fconfigure --enable-xdebug\nmake\nsudo make install\n","text",[232,233,229],"code",{"__ignoreMap":234},"",[211,236,237],{},"My machine didn't have an existing php.ini - so I changed the next section:",[225,239,242],{"className":240,"code":241,"language":230},[228],"sudo cp \u002Fetc\u002Fphp.ini.default \u002Fetc\u002Fapache2\u002Fphp.ini\n",[232,243,241],{"__ignoreMap":234},[211,245,246],{},"Now - add the following to the end of the new php.ini:",[225,248,251],{"className":249,"code":250,"language":230},[228],"zend_extension=\u002Fusr\u002Flib\u002Fphp\u002Fextensions\u002Fno-debug-non-zts-20060613\u002Fxdebug.so\nxdebug.remote_enable=1\nxdebug.remote_host=localhost\nxdebug.remote_port=9000\nxdebug.remote_autostart=1\n",[232,252,250],{"__ignoreMap":234},[211,254,255],{},"Finally - tell apache which php.ini to load - add the following to \u002Fetc\u002Fapache2\u002Fother\u002Fphp5.conf:",[225,257,260],{"className":258,"code":259,"language":230},[228],"PHPIniDir \u002Fetc\u002Fapache2\n",[232,261,259],{"__ignoreMap":234},[211,263,264,265],{},"Finally - restart apache.  For debugging - Eclipse, Komodo or ",[215,266,269],{"href":267,"rel":268,"target":222},"http:\u002F\u002Fwww.bluestatic.org\u002Fsoftware\u002Fmacgdbp\u002F",[219,220,221],"MacGDBp",{"title":234,"searchDepth":271,"depth":271,"links":272},2,[],null,"2009-01-10 21:36:31 +0100","This is based on the information on http:\u002F\u002Fdevelopers.sugarcrm.com\u002Fwordpress\u002F2008\u002F11\u002F25\u002Fenabling-xdebug-under-os-x-leopard\u002F.\nDownload xdebug 2.0.4 (or later - but this is based on the 2.0.4 build) - extract it.","md",{},true,"\u002F2009\u002F01\u002F10\u002Frunning-xdebug-2-0-4-on-osx-leopard-apache-php",{"title":206,"description":275},{"loc":279},"2009\u002F01\u002F10\u002Frunning-xdebug-2-0-4-on-osx-leopard-apache-php",[284,285,286,287,288],"mac","leopard","php","xdebug","debug","r6H1FH1Vy3mydGrIIRvEXgacGvupoVWZDZWk0nfQdh8",1775293015088]