GithubHelp home page GithubHelp logo

Comments (6)

john-guo avatar john-guo commented on July 18, 2024 1

Hi zhfkt

It seems this issue is caused by multi-threading. Because the vscode debug api cannot provide the current thread id in active debug session, I use the first thread id to evaluate the expression. I will modify the limition description in ReadMe.Thank you.

from simply-view-image-for-python-opencv-debugging.

john-guo avatar john-guo commented on July 18, 2024 1

Hi @zhfkt

After some experimentation I made a workaround in multithreaded debugging. Hope it works for you. Thank you.

from simply-view-image-for-python-opencv-debugging.

john-guo avatar john-guo commented on July 18, 2024

Hello,

I have tested with wsl and it's no problem. Do you install the extension in wsl? The extension must be installed in wsl not local if you want to debug in wsl.

screenshot 2021-01-22 235529

from simply-view-image-for-python-opencv-debugging.

zhfkt avatar zhfkt commented on July 18, 2024

Hi @john-guo

I installed the extension in both local and wsl env

image

Could we have some way to collect extension logs for what happened in my local envs ? then I could provide extension logs to you for futher debugging ?

from simply-view-image-for-python-opencv-debugging.

john-guo avatar john-guo commented on July 18, 2024

How do you start the debug? Could you paste some Python Debug Console outputs? Could you create a tiny python to test this issue, such as:

import numpy as np
import cv2

img = cv2.imread("test.jpg")

pass

or you can add some logs in ViewImageService.ts:

		let res = await session.customRequest('threads', {});
--------> console.log(res); 
		let threads = res.threads;
		let mainThread = threads[0].id;
--------> console.log(`main:${mainThread}`);

But I don't know if this will be helpful.

from simply-view-image-for-python-opencv-debugging.

zhfkt avatar zhfkt commented on July 18, 2024

Hi @john-guo

Thank you for your the suggestion. I just saw the log from the "Log (Remote Extension)" in the output window in the following screenshot

image

Unfortunately I didn't have much time to debug further because I was too busy in recent days. I used another plugin from Pycharm on https://plugins.jetbrains.com/plugin/14371-opencv-image-viewer as an alternative choice. You could close this issue if you would like to close it.

from simply-view-image-for-python-opencv-debugging.

Related Issues (10)

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.