亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

XDebug with Brackets - 非活動調試按鈕

XDebug with Brackets - 非活動調試按鈕

PHP
明月笑刀無情 2023-04-15 16:37:15
我已經安裝了:-> Xampp 3.2.2 (PHP 7.1.15),-> XDebug“已安裝:2.9.5”(來自 xdebug 向導的版本)-> 和帶有 PHP 調試器擴展的 BRACKETS 1.14在調試窗口中,我的按鈕“RUN”、“STOP”等顯示為灰色,我一直看到: Server started listening on port: 9000 idekey: xdebug我的文件 brackets.json:  {    "brackets-eslint.gutterMarks": true,    "brackets-eslint.useLocalESLint": false,    "fonts.fontSize": "18px",    "fonts.fontFamily": "",    "themes.theme": "dark-theme",    "linting.collapsed": true,    "livedev.multibrowser": false,    "noDistractions": false,    "smartIndent": false,    "php-debugger.idekey": "xdebug",    "php": {        "enablePhpTooling": true,        "executablePath": "C:\\XAMPP\\php\\php.exe",        "memoryLimit": "4095M",        "validateOnType": "false"    } }Apache PHP.ini output_buffering = off (...) [XDebug] zend_extension = c:\xampp\php\ext\php_xdebug.dll xdebug.default_enable=1 xdebug.idekey=xdebug xdebug.remote_autostart = 1 xdebug.profiler_append = 0 xdebug.profiler_enable = 0 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = c:\xampp\tmp xdebug.remote_mode = req xdebug.remote_connect_back=1 xdebug.remote_enable=1 xdebug.remote_handler = dbgp xdebug.remote_connect_back=1 xdebug.remote_host = localhost xdebug.remote_log = c:\xampp\tmp\xdebug.txt xdebug.remote_port = 9000 xdebug.trace_output_dir = c:\xampp\tmp xdebug.remote_cookie_expire_time = -9999 xdebug.show_local_vars = 0 xdebug.max_nesting_level = 1000我的文件 test.php echo 'A'; echo 'B';   <- here I put breakpoint (red dot) echo 'C';始終返回“ABC”。無論我使用 ?XDEBUG_SESSION_START=xdebug 還是 chrome xdebug 輔助擴展:我的斷點根本不起作用。如果我在 PHP 調試器窗口中輸入一些內容,我會收到: An active debugging session is required for code evaluation.我已經嘗試了數百種不同的設置,包括將 php.ini“開/關”更改為 1/0,將 dll 路徑放入引號中,將本地主機更改為“127.0.0.1”,但沒有一個有效。當然,每次更改設置后,我都會重新啟動 Apache 和括號。我喜歡 Brackets 是因為它的外觀簡單(我剛開始學習 php,當時我不會學習復雜的 IDE)以及實時預覽功能。先感謝您。
查看完整描述

1 回答

?
慕桂英546537

TA貢獻1848條經驗 獲得超10個贊

最后我找到了工作設置。也許這會幫助某人:


 (...)

 output_buffering = off

 (...)

 [XDebug]

 zend_extension = c:\xampp\php\ext\php_xdebug.dll

 xdebug.default_enable = 1

 xdebug.idekey = "xdebug"

 xdebug.remote_autostart = 0

 xdebug.profiler_append = 0

 xdebug.profiler_enable = 0

 xdebug.profiler_enable_trigger = 1

 xdebug.profiler_output_dir = "c:\xampp\tmp"

 xdebug.profiler_output_name = "cachegrind.out.%t-%s"

 xdebug.remote_connect_back = 0

 xdebug.remote_enable = 1

 xdebug.remote_handler = "dbgp"

 xdebug.remote_mode=req

 xdebug.remote_connect_back=0

 xdebug.remote_host = 127.0.0.1

 xdebug.remote_log = "c:\xampp\tmp\xdebug.txt"

 xdebug.remote_port = 9000

 xdebug.trace_output_dir = "c:\xampp\tmp"

 xdebug.remote_cookie_expire_time = -9999

 xdebug.show_local_vars = 0

 xdebug.max_nesting_level = 1000

我有時會收到“實時預覽”錯誤,但這是要解決的另一種情況,與 xdebug 沒有嚴格關系,我相信......


查看完整回答
反對 回復 2023-04-15
  • 1 回答
  • 0 關注
  • 130 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號