Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Start a General Application Debugging Task

Symptom

A general application debugging task fails to be started.

Figure 1 Debugging failure 1
Figure 2 Debugging failure 2

Possible Causes

  • The C or C++ plugin is not supported.
  • The target server does not have GDB or GDB is not in the specified path.

Procedure

  • Upgrade the C or C++ plugin.
  • If the target server does not have GDB, download GDB from its official website and install it.
  • If GDB is not in the specified path, do as follows:
    1. Run the following command on the target server to query the GDB path:
      1
      command -v gdb -v
      
    2. In the launch.json file, change the value of debuggerPath to the path where the GDB is located.