netbeans鐨刣ebug鍔熻兘

python鐨刾ycharm鏈夊緢鏂逛究鐨刣ebug锛屾垜鍦ㄦ濊冨钩鏃跺啓php鐢ㄧ殑netbeans鑳戒笉鑳斤紝浜庢槸鎴戣瘯鐫鐐逛簡涓涓嬫柇鐐,鍦ㄥ啋娉℃帓搴忕殑涓棿锛屽彂鐜颁笉琛岋紝鏄剧ずnetbeans鏄剧ず鈥滅瓑寰呰繛鎺ワ紙netbeans-xdebug锛

function BubbleSort(array $container)
{
    $count = count($container);
    for ($j = 1; $j < $count; $j++) {
        for ($i = 0; $i < $count - $j; $i++) {
            if ($container[$i] > $container[$i + 1]) {
                $temp = $container[$i];
                $container[$i] = $container[$i + 1];
                $container[$i + 1] = $temp;
            }
        }
    }
    return $container;
}
BubbleSort([4, 21, 41, 2, 53, 1, 213, 31, 21, 423]);

浜庢槸鎴戝湪php.ini閲岄潰鎼滅储xdebug,鍔犲叆

[XDebug]
xdebug.profiler_output_dir="E:\phpStudy\tmp\xdebug"
xdebug.trace_output_dir="E:\phpStudy\tmp\xdebug"
zend_extension="E:\phpStudy\php\php-5.4.45\ext\php_xdebug.dll"
xdebug.remote_port=9001
xdebug.idekey=netbeans-xdebug
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
extension="./ext/php_igbinary.dll"
extension="./ext/php_redis.dll"

鐒跺悗鍦neabeans閲岄潰鐨宸ュ叿->閫夐」PHP

鍐嶆debug锛屽簲璇ュ彲浠ヤ簡

All posts

Other pages

鍙戣〃璇勮

鐢靛瓙閭欢鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢*鏍囨敞