簡體   English   中英

在 VS Code 中調試 PHP - “skipFiles”?

[英]Debugging PHP in VS Code - "skipFiles"?

我正在嘗試在 Visual Studio Code 中調試網站(在 Chrome 中安裝了 XDEBUG)。 它工作正常,但讓我煩惱的是我必須遍歷所有文件(例如通過數據庫運行的腳本等)

我看到可以在launch.json文件中使用“skipFiles”跳過某些文件,但看起來這僅用於調試Node.js,它還說“不允許使用屬性skipFiles”。

    {
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Listen for XDebug",
      "type": "php",
      "request": "launch",
      "port": 9000,
      "skipFiles": [
        "auto_prepend.php",
        "application_top.php",
        "database.php"
      ]
    },
    {
      "name": "Launch currently open script",
      "type": "php",
      "request": "launch",
      "program": "${file}",
      "cwd": "${fileDirname}",
      "port": 9000
    }    
  ]
}

在 VS Code 中調試期間是否有某種方法可以跳過文件?

好的,現在我覺得很傻;-) 你可以使用 F10 (Step Over) 來不跳出文件。 也許有人有同樣的問題,他可以閱讀這個。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM