Giter Club home page Giter Club logo

Comments (10)

brunoalr avatar brunoalr commented on May 29, 2024

Hi @binfsuc, I haven't tested debugging with VSCode + WSL. My guess is that VSCode is not configured to use the same gdb binary as the one from WSL.

Can you share all the project files from this C++ demo, please? (CMake-related files, source code and launch.json)

from openimagedebugger.

binfsuc avatar binfsuc commented on May 29, 2024

Hi @binfsuc, I haven't tested debugging with VSCode + WSL. My guess is that VSCode is not configured to use the same gdb binary as the one from WSL.

Can you share all the project files from this C++ demo, please? (CMake-related files, source code and launch.json)
Thank you. If it is what you said, how should I modify it
image
image
image

from openimagedebugger.

brunoalr avatar brunoalr commented on May 29, 2024

Hi @binfsuc if you can share them as files and/or text it gets easier for me to help :)

from openimagedebugger.

binfsuc avatar binfsuc commented on May 29, 2024

@brunoalr ok ๏ผŒthis is all file
image

myprojects.zip

from openimagedebugger.

brunoalr avatar brunoalr commented on May 29, 2024

Thanks! I will try to reproduce it later and let you know.

from openimagedebugger.

binfsuc avatar binfsuc commented on May 29, 2024

ok
my ./gdbinit
image
run python3 /path/to/OpenImageDebugger/oid.py --test
image

from openimagedebugger.

binfsuc avatar binfsuc commented on May 29, 2024

is there any progress?

from openimagedebugger.

brunoalr avatar brunoalr commented on May 29, 2024

I was able to reproduce the issue.

The more detailed error message I got is

&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

[OpenImageDebugger] No clients connected to OpenImageDebugger server

But I don't know how to solve this. Sorry.

On the other hand, I tested debugging via the command line and it works fine on Windows 10 + WSL2 + MobaXterm's X11 server. I would recommend using OID via the command line, since right now we don't have much time to focus on specific IDEs. Feel free to contribute, though :)

from openimagedebugger.

brunoalr avatar brunoalr commented on May 29, 2024

I also did one final test, in the same setup (Windows 10 + WSL2 + MobaXterm's X11 server) I installed vscode inside WSL and I can confirm it works.

from openimagedebugger.

brunoalr avatar brunoalr commented on May 29, 2024

Another test: I was able to get access to a Windows 10 22H2 with WSLg support and managed to get OID to work when connecting to a WSL remote on VSCode running on the host machine. Make sure you source oid.py correctly, for example via ~/.gdbinit.

from openimagedebugger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.