のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

vsCode Cannot find or open the PDB file.

-------------------------------------------------------------------
You may only use the C/C++ Extension for Visual Studio Code with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
Loaded 'C:\Users\m_fuj\Documents\GitHub\progrust\ch02\target\debug\ch02.exe'. Symbols loaded.
Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\System32\vcruntime140.dll'. Cannot find or open the PDB file.
The thread 12804 has exited with code 0 (0x0).
Usage gcd Number ...
The thread 7044 has exited with code 1 (0x1).
The thread 4608 has exited with code 1 (0x1).
The program '[14288] ch02.exe' has exited with code 1 (0x1).

前)

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(Windows) 起動",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "${workspaceFolder}/target/debug/ch02",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false
        }
    ]
}

以下を追加すると、ワーニングは消える。

           "logging": {
                "moduleLoad": false
            }

後)

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(Windows) 起動",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "${workspaceFolder}/target/debug/ch02",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "logging": {
                "moduleLoad": false
            }
        }
    ]
}
-------------------------------------------------------------------
You may only use the C/C++ Extension for Visual Studio Code with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
The thread 11280 has exited with code 0 (0x0).
Usage gcd Number ...
The thread 3004 has exited with code 1 (0x1).
The thread 11964 has exited with code 1 (0x1).
The program '[9280] ch02.exe' has exited with code 1 (0x1).

情報元は、以下の場所: stackoverflow.com