[英]Debug Console REPL not responding to a debug session. Not able to interact with
所以今天在調試我的 TypeScript 代碼時,我在 VSCode 中遇到了一個非常嚴重的錯誤。 啟動調試會話時。 我無法與“DEBUG CONSOLE”交互。 “調試控制台”窗口只是沒有響應。 似乎“調試控制台”選項卡沒有從我的瀏覽器(chrome)收到任何信息。
我的啟動.json:
{
// 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": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8100",
"webRoot": "${workspaceFolder}",
}
]
}
對我有用的是將“outputCapture”指定為“console”。 之后,“DEBUG CONSOLE”再次工作。 也許它在我不知道的情況下在內部以某種方式改變了它。 希望它對面臨同樣問題的人有所幫助
{
// 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": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Edge against localhost",
"url": "http://localhost:8100",
"webRoot": "${workspaceFolder}",
"outputCapture": "console",
}
]
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.