You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi dear developer. I have follewed your project about 2 years from gdb-imagewatch. It is an awesome work! I love it!
Recently I have been looking for a image-watch like plug-in on VS Code, but turn out nothing. I wonder if we can use your project to make a plug-in to do OpenCV mat memory view inside VS Code.
Do you have a plan to do it or can you accept someone else to do this work?
Hi, @YihaoWEI thanks for getting in touch and using our project, we are really happy to hear that :D
Yes, I think it is possible to package it as a plugin for a few IDEs (VSCode, CLion/AndroidStudio, Atom and whatnot). We have the intention to do so indeed, but we do not have concrete plans yet as we currently do not have enough free time to do so. We also want to explore other types of packaging such as Debian packages.
So, answering your last question directly: contributions are definitely welcome :D It would be really nice to set up an architecture that enables different packaging targets.
Also, I believe OID should work out-of-the-box with VSCode if you add the "source" command to your .gdbinit or .lldbinit file. I will test it as soon as I can and then I will keep you updated.
Thanks brunoalr! I have already made it realized using .gdbinit inside VSCode. It works very well as usual.
I'm studying inside VSCode to see if it is possible to make it as a plug-in tool.
Hope I can finish it soon :D
Reacted by Sami Varjo, Shih-Chih, Lin, JAEHONG KIM, hak0, Bruno Alexandre Rosa, yann-qu, 崔星星 and yunhao666
@brunoalr
Also added source /path/oid.py to ~/.gdbinit, but no GUI appeared when running gdb(I am sure that Mat in buffer exists).
P.S. I followed the readme very strict. After getting rid of a lot of envirment error, still not working.
@brunoalr@mwwzbinf, It's not a plugin for vscode but I'm working on an integration using devcontainer-features which integrates with devcontainers quite easily. I start the project here: dakhouya/devcontainer-features
It is still a work in progress and I mainly use it to debug c++ code with gbd so maybe there's thing missing for lldb.
Could you please give me some help with this? Thank you for the help.
My env is
OID version (commit or tag): v1.19.0 or v1.23.49
OS and Version: M1 MacOS
Which debugger [gdb and/or lldb] and respective versions: lldb version 19.1.7
Python version: Python 3.13.2
Before I moved to vscode and CodeLLDB, I have installed OID successfully and I can run python3 /path/install/oid.py --test and lldb test and pop out GUI successfully. (also writed into ~/.lldbinit).
Hi @JiahangWu, thanks for the detailed report :) So far, I haven't tried to use the codelldb plugin as I usually rely on the CLI of the debuggers myself - thus we are not supporting it as of of now - that reminds me I should make it clearer on the README which configurations are supported 😅, but after all, this is mostly a hobby project for me. I will try to take a look at the plugin using the config you provided, but I cannot promise when I will do it neither if I will succeed.
Then start debugging with F5, not the "Debug" button in the status bar. I am not sure which of the gazillion plugins is responsible for the status bar button, probably CMake-tools.
Hi everyone, sorry for the very long delay on this one 😅
Good news though: there is now an official Open Image Debugger extension for VS Code (and forks like Cursor, VSCodium, Windsurf, etc.), so the original question from this issue is finally answered — yes, you can use it as a VS Code plugin :D
Activity
brunoalr commentedon Aug 13, 2020
Hi, @YihaoWEI thanks for getting in touch and using our project, we are really happy to hear that :D
Yes, I think it is possible to package it as a plugin for a few IDEs (VSCode, CLion/AndroidStudio, Atom and whatnot). We have the intention to do so indeed, but we do not have concrete plans yet as we currently do not have enough free time to do so. We also want to explore other types of packaging such as Debian packages.
So, answering your last question directly: contributions are definitely welcome :D It would be really nice to set up an architecture that enables different packaging targets.
Also, I believe OID should work out-of-the-box with VSCode if you add the "
source" command to your .gdbinit or .lldbinit file. I will test it as soon as I can and then I will keep you updated.YihaoWEI commentedon Aug 25, 2020
Thanks brunoalr! I have already made it realized using .gdbinit inside VSCode. It works very well as usual.
I'm studying inside VSCode to see if it is possible to make it as a plug-in tool.
Hope I can finish it soon :D
github-actions commentedon Jun 27, 2021
Stale issue message
wuwuzhijing commentedon Sep 15, 2021
@YihaoWEI
python /path/oid.py --testworks well.Then i tried
source /path/oid.py, but got an error:Any ideas?
brunoalr commentedon Sep 15, 2021
@wuwuzhijing please follow the instructions from the readme: https://github.com/OpenImageDebugger/OpenImageDebugger#building-the-open-image-debugger
For gdb, you have to call
source /path/oid.pywhen running gdb or add this line to ~/.gdbinitwuwuzhijing commentedon Sep 15, 2021
@brunoalr
Also added
source /path/oid.pyto ~/.gdbinit, but no GUI appeared when running gdb(I am sure that Mat in buffer exists).P.S. I followed the readme very strict. After getting rid of a lot of envirment error, still not working.
wuwuzhijing commentedon Sep 17, 2021
@brunoalr
Can you figure out the problem?
brunoalr commentedon Sep 17, 2021
@wuwuzhijing I can help :)
I need more information first:
(I actually plan to create an issue template to ask for this kind of information :) )
wuwuzhijing commentedon Sep 17, 2021
@brunoalr
Thank you for your attention.
basic config
OID commit hash
1ba720cf9ad6ab8e3e0f3455ed41bd337b4e6f74OS
Ubuntu 20.04.1gdb version
9.2python3 version
3.8.8python2 version
2.7.18reproduction steps
source /mypath/OpenImageDebugger/oid.pyIf you need more info. , I will add later.
5 remaining items
mwwzbinf commentedon Jun 20, 2023
vscode+wsl2, debug from console, What should I do?

I like image watch very much under windows, but It was very frustrating for me under linux
dakhouya commentedon Feb 20, 2024
@brunoalr @mwwzbinf, It's not a plugin for vscode but I'm working on an integration using devcontainer-features which integrates with devcontainers quite easily. I start the project here: dakhouya/devcontainer-features
It is still a work in progress and I mainly use it to debug c++ code with gbd so maybe there's thing missing for lldb.
References for the devcontainers
https://code.visualstudio.com/docs/devcontainers/containers
https://containers.dev/overview
brunoalr commentedon Feb 20, 2024
Interesting idea! I will take a look at it when I have time.
JiahangWu commentedon Mar 13, 2025
Hi @brunoalr,
I am trying to use OID with CodeLLDB and vscode. But I cannot open the OID window now.
This is my
lauch.json:Could you please give me some help with this? Thank you for the help.
My env is
Before I moved to vscode and CodeLLDB, I have installed OID successfully and I can run
python3 /path/install/oid.py --testandlldb testand pop out GUI successfully. (also writed into~/.lldbinit).This is the screenshot when I manually used

lldb:brunoalr commentedon Mar 13, 2025
Hi @JiahangWu, thanks for the detailed report :) So far, I haven't tried to use the codelldb plugin as I usually rely on the CLI of the debuggers myself - thus we are not supporting it as of of now - that reminds me I should make it clearer on the README which configurations are supported 😅, but after all, this is mostly a hobby project for me. I will try to take a look at the plugin using the config you provided, but I cannot promise when I will do it neither if I will succeed.
brunoalr commentedon Mar 13, 2025
@JiahangWu try this (using your own paths and names...):
OpenImageDebugger/tesbench/.vscode/launch.json
{ "version": "0.2.0", "configurations": [ { "type": "lldb", "request": "launch", "name": "Debug", "program": "${workspaceFolder}/build/testbench", "args": [], "cwd": "${workspaceFolder}", "initCommands": ["command script import <path to OID installation>/oid.py"], } ] }OpenImageDebugger/tesbench/.vscode/settings.json
{ "lldb.library": "/opt/homebrew/Cellar/llvm/19.1.7_1/lib/liblldb.19.1.7.dylib" }Then start debugging with F5, not the "Debug" button in the status bar. I am not sure which of the gazillion plugins is responsible for the status bar button, probably CMake-tools.
JiahangWu commentedon Mar 13, 2025
Ohhhh! It works now. Thank you so much!
brunoalr commentedon Mar 13, 2025
no problem, glad to help :)
JiahangWu commentedon Mar 14, 2025
Hi @brunoalr,
I briefly wrote an instruction to use OID on MacOS(https://github.com/JiahangWu/OpenImageDebugger). Please feel free to integrate it into your
README.mdif it's useful.brunoalr commentedon Jul 11, 2026
Hi everyone, sorry for the very long delay on this one 😅
Good news though: there is now an official Open Image Debugger extension for VS Code (and forks like Cursor, VSCodium, Windsurf, etc.), so the original question from this issue is finally answered — yes, you can use it as a VS Code plugin :D
You can grab it from:
brunoalr commentedon Aug 23, 2026
I also just released a plugin for CLion and Android Studio: https://plugins.jetbrains.com/plugin/33640-open-image-debugger :D