Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODEEXT-182

could not find the task "Qt: Acquire Port"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 1.5.1
    • QML/QtQuick support
    • None
    • Linux/X11

    Description

      as title.

      the launch.json:

      {
      	"version": "0.2.0",
      	"compounds": [
      		{
      			"name": "C++/QML",
      			"configurations": [
      				"Qt: Debug with cppdbg and QML debugger",
      				"Qt: QML: Attach by port"
      			],
      			"preLaunchTask": "Qt: Acquire Port",
      		}
      	],
      	"configurations": [
      		{
      			"name": "Qt: QML: Attach by port",
      			"presentation": {
      				"hidden": true
      			},
      			"type": "qml",
      			"request": "attach",
      			"host": "localhost",
      			"port": "${command:qt-qml.debugPort}",
      		},
      		{
      			"name": "Qt: Debug with cppdbg and QML debugger",
      			"presentation": {
      				"hidden": true
      			},
      			"type": "cppdbg",
      			"request": "launch",
      			"program": "${command:cmake.launchTargetPath}",
      			"stopAtEntry": false,
      			"cwd": "${workspaceFolder}",
      			"visualizerFile": "${command:qt-cpp.natvis}",
      			"showDisplayString": true,
      			"args": [
      				"-qmljsdebugger=host:localhost,port:${command:qt-qml.debugPort},block,services:DebugMessages,QmlDebugger,V8Debugger"
      			],
      			"linux": {
      				"MIMode": "gdb",
      				"miDebuggerPath": "/usr/bin/gdb",
      				"sourceFileMap": {
      					"/home/qt/work/qt": "/mnt/datum/develop/Qt/6.9.0/Src"
      				}
      			},
      			"osx": {
      				"MIMode": "lldb"
      			},
      			"windows": {
      				"environment": [
      					{
      						"name": "PATH",
      						"value": "${env:PATH};${command:qt-cpp.qtDir}"
      					},
      					{
      						"name": "QT_QPA_PLATFORM_PLUGIN_PATH",
      						"value": "${command:qt-cpp.QT_QPA_PLATFORM_PLUGIN_PATH}"
      					},
      					{
      						"name": "QML_IMPORT_PATH",
      						"value": "${command:qt-cpp.QML_IMPORT_PATH}"
      					}
      				],
      				"MIMode": "gdb",
      				"miDebuggerPath": "${command:qt-cpp.minGWgdb}"
      			}
      		}
      	]
      }
       

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          325 kB
        2. screenshot-2.png
          screenshot-2.png
          226 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            orkun.tokdemir Orkun Tokdemir
            niqingliang2003 niqingliang2003
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes