OpenImageDebugger icon indicating copy to clipboard operation
OpenImageDebugger copied to clipboard

INFO: Could not activate hooks for any IDEs Stop hook #1 added.

Open Practice3DVision opened this issue 1 year ago • 1 comments

  • v1.17.26:
  • Windows 11:
  • lldb(LLVM 17.0):
  • VS2019:
  • Python 3.11:

Describe the bug

Thank you for developing such a practical tool.

In fact, I particularly want to use it for debugging in VScode on the Windows platform.

However, I tested VSCode and QtCreator and both showed the following errors, so there was no GUI display either.

[OpenImageDebugger] INFO: Could not activate hooks for any IDEs
Stop hook # 1 added

I really hope you can take the time to solve this problem. Thank you very much.

This issue is similar to it. #6

Practice3DVision avatar Apr 07 '24 12:04 Practice3DVision

Until today, I haven't given up!

After recompiling lldb to the same Python version as OpenImageDebugger, I followed the MAC system compilation guide for testing, and now the oid window can be opened normally!

It can search for my image variables, but when I click on the variable, the window is still blank, as if this is another problem.

Do you have any good suggestions?

This is my debugging process and results:

(base) PS D:\code\test\main\build> lldb MAIN
(lldb) target create "MAIN"
(lldb) Current executable set to 'D:\code\test\main\build\MAIN.exe' (x86_64).
(lldb) command script import "C:/OpenImageDebugger/OpenImageDebugger/oid.py"
[OpenImageDebugger] INFO: Could not activate hooks for any IDEs
Stop hook #1 added.
(lldb) break set -f main.cpp -l 9
Breakpoint 1: where = MAIN.exe`main + 224 at main.cpp:9, address = 0x00000001400010e0
(lldb) run
(lldb) Process 23212 launched: 'D:\code\test\main\build\MAIN.exe' (x86_64)
Process 23212 stopped
* thread #1, stop reason = breakpoint 1.1
    frame #0: 0x00007ff6cd2b10e0 MAIN.exe`main at main.cpp:9
   6        cv::Mat imgSSAA = cv::imread("D:/code/3050TiCUDA.png", cv::IMREAD_UNCHANGED);
   7        int AFDA = 2;
   8        std::cout <<imgAA.empty() << std::endl;
-> 9        return 0;
   10   }
(lldb)

屏幕截图 2024-04-09 192126

Practice3DVision avatar Apr 09 '24 11:04 Practice3DVision