orcun-gokbulut / qml-debug

Visual Studio Code debugging support for Qt QML language
GNU General Public License v3.0
11 stars 5 forks source link

Nothing occurs when run. #5

Open RokeJulianLockhart opened 1 year ago

RokeJulianLockhart commented 1 year ago

Reproducible using https://github.com/qt-labs/qtdotnet/blob/19c593fcc505d0127b097e0da880e0d0a9274d5d/examples/Chronometer/QmlChronometer/main.qml#L1-L453 with https://marketplace.visualstudio.com/_apis/public/gallery/publishers/orcun-gokbulut/vsextensions/qml-debug/0.1.0/vspackage and code-insiders-1.89.0-1713939362.el8.src.rpm.

piwaneczko commented 1 year ago

Hi, same for me. I'm trying run your debugger on Windows 11. Debugger is connecting to server, but application doesn't start.. I tried to connect to TCP server on port 12150 from Hercules Terminal and server refused with message "QML Debugger: Another client is already connected.". In the extension lg i can see following Uncaught Errors: image

RokeJulianLockhart commented 1 year ago

https://github.com/orcun-gokbulut/qml-debug/issues/5#issuecomment-1562874764

@piwaneczko, which command did you invoke, and how did you see those logs? I ask because https://stackoverflow.com/posts/44188262/revisions#:~:text=Where%20are%20the,the%20error%20happens isn't much help for me. I wonder whether your issue might be separate, because I don't see anything appear anywhere automatically. Not even the .qml file or an extension debug log. Of course, if you've manually setup something, they're probably the same.

Regarding that, I put the launch.json file mentioned at https://github.com/orcun-gokbulut/qml-debug/blob/69b74cf92e547fb7383f8aa6f03ddea71fadfd4b/README.md#attach-mode in ./launch.json of the .qml file's PWD. Nothing changed. @orcun-gokbulut, is that location correct? I ask because https://github.com/orcun-gokbulut/qml-debug/blob/69b74cf92e547fb7383f8aa6f03ddea71fadfd4b/README.md?plain=1#L1-L188 doesn't appear to mention the location.

ilciavo commented 7 months ago

I'm starting a qml app with the following parameters:

-qmljsdebugger=host:localhost,port:12150,block,services:DebugMessages,QmlDebugger,V8Debugger,QmlInspector

The following configuration is used on VSCode:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "QML Debug: Attach",
            "type": "qml",
            "request": "attach",
            "host": "localhost",
            "port": 12150,
                "paths": {
                "qrc:/": "${workspaceFolder}/path_to_qml_folder"
            }
        }
    ]
}

I start the application and try to attach the process with VSCode, but I get the following messages in Windows and Linux:

QMLDebuggerError

QMLDebuggerLinux

The error disapears after changing the QmlDebugger version but break points are still disabled

-qmljsdebugger=host:localhost,port:12150,block,services:DebugMessages,QmlDebugger,V5Debugger,QmlInspector

Which Qt versions are supported and how can we switch to a different version?

ilciavo commented 7 months ago

Hi, same for me. I'm trying run your debugger on Windows 11. Debugger is connecting to server, but application doesn't start.. I tried to connect to TCP server on port 12150 from Hercules Terminal and server refused with message "QML Debugger: Another client is already connected.". In the extension lg i can see following Uncaught Errors: image

Don't you think that you're launching multiple processes?