Comments (6)
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.
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.
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.
from simply-view-image-for-python-opencv-debugging.
Hi @john-guo
I installed the extension in both local and wsl env
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.
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.
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
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)
- 0 to 1.0 float images not saved correctly HOT 4
- display the image from the debug console? HOT 1
- Add TF 2 support HOT 1
- The extension has stopped working for me HOT 2
- Why I can't use the extension independently? HOT 4
- Extension not working via ssh with x11 forwarding HOT 2
- The extension is not working anymore HOT 2
- Use of WebviewEditorInset HOT 2
- can you make it to do the same thing for plt during the debug? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simply-view-image-for-python-opencv-debugging.