phpstormでステップ実行しようとしたらError running Xdebug: Handler with the same session id is already registeredがでた php

phpstormでステップ実行しようとしたらエラーがでたので対応した
Error running Xdebug: Handler with the same session id is already registered

phpstormにXdebug でリモートデバッグしたかったので
設定したのだが
Error running Xdebug: Handler with the same session id is already registered
というエラーがでて一向にステップ実行できなかった。

対応策として、
Setteings > Languages & Frameworks > PHP > Debug > DBGp Proxy
箇所で IDE key として登録してた「PHPSTORM」 を 別名(例えばPHPSTORM2)に変更して登録。
そしてサーバー側のphp.ini にも
xdebug.idekey = PHPSTORM2 として設定
apache再起動。

これで無事phpstormでステップ実行できるようになった。
エラーにでてた
Error running Xdebug: Handler with the same session id is already registered
という idとは
IDE keyだったのね。


ポート番号は確認しないとね


3.リモートデバッグ出来るように
PhpStormでXdebugのリモートデバッグを設定する方法
まずはサーバー側にXdebugをインストール。yum経由は要remiリポジトリ。
# yum install php-pecl-xdebug
公式サイトのドキュメントを見ながら設定。
# vi /etc/php.d/xdebug.ini
; Enable xdebug extension module
zend_extension=/usr/lib64/php/modules/xdebug.so
; see http://xdebug.org/docs/all_settings
xdebug.remote_enable=1
xdebug.remote_port=9001
xdebug.remote_autostart=1
xdebug.remote_connect_back=1
# /etc/rc.d/init.d/php-fpm restart
DBGp用にファイアウォールを設定は必要ないみたい。
ちなみに空いているポートの確認は
# nmap localhost
が見やすい。nmapがインストールされてない環境では
# netstat -l
でも分かる。
今度はPhpStorm側の設定。
Settings → PHP → DebugのXdebug - Debug port:を9001にする。
Settings→ PHP → SeversにデバッグするURLを指定して、ローカル側のパスとサーバー側の絶対パスを結びつける。
http://se-suganuma.blogspot.jp/2014/06/phpstormphalcon-php.html




ないの
画面せっげいしょ
DB定義書

詳細
処理定義
画レイアウト
帳票レイアウト
inputchec!
テーブル編集
処理ごとの補足資料 特別資料


・todo
こきゃくけんさく email部分なのでvalidateしない
pkをあらいだす作業
curlのふぉーばっと エラーだす
1 1lineで出力
2 展開してだす
?からやる
デフォルト実行しそのエラーをはじこう
tail -100f sql.log | grep -v stcclas s
modeldatqagetterもちかえる
apibaseの前後、contorollerbaseの前後 modeldataの前後にログはくのいれる