Debugging 颤振在哪里';是否将调试器输出附加到? 对于这个实验,我使用了一个未修改的默认颤振项目,我正在通过usb对Note9进行测试 VS代码版本:1.34.0 Dart扩展版本:3.1.0 颤振扩展版本:3.1.0 颤振医生输出:

Debugging 颤振在哪里';是否将调试器输出附加到? 对于这个实验,我使用了一个未修改的默认颤振项目,我正在通过usb对Note9进行测试 VS代码版本:1.34.0 Dart扩展版本:3.1.0 颤振扩展版本:3.1.0 颤振医生输出:,debugging,flutter,visual-studio-code,android-debug,vscode-debugger,Debugging,Flutter,Visual Studio Code,Android Debug,Vscode Debugger,每当我在终端中输入“颤振运行”时,一切都会顺利运行,即热重新加载和重新启动工作,并将输出记录和打印到终端 每当我在“调试”面板上单击“开始调试”时,情况也是如此;唯一的区别是我必须使用CTRL+F5和CTRL+SHIFT+F5(而不是在终端中输入“r”和“r”)进行热重新加载和重新启动,并将输出记录和打印到“调试控制台” 我的问题源于从以下位置更改默认的launch.json文件 { // Use IntelliSense to learn about possible attribut

每当我在终端中输入“颤振运行”时,一切都会顺利运行,即热重新加载和重新启动工作,并将输出记录和打印到终端

每当我在“调试”面板上单击“开始调试”时,情况也是如此;唯一的区别是我必须使用CTRL+F5和CTRL+SHIFT+F5(而不是在终端中输入“r”和“r”)进行热重新加载和重新启动,并将输出记录和打印到“调试控制台”

我的问题源于从以下位置更改默认的launch.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": [
        {
            "name": "Flutter",
            "request": "launch",
            "type": "dart"
        }
    ]
}
对此

{
    // 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": "Flutter",
            "request": "attach",
            "type": "dart"
        }
    ]
}

现在,无论何时单击“开始调试”,我的打印和日志都不会显示在任何地方!他们可以输出到哪里?

你能解决这个问题吗?
{
    // 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": "Flutter",
            "request": "attach",
            "type": "dart"
        }
    ]
}