2D/3D Debug Visualizer
Visualize OpenCV & PCL data during C++ debugging.
Inspired by CV DebugMate C++ .
Usage
- Start a C++ debug session in VS Code
- Set a breakpoint where OpenCV & PCL variables are in scope
- In the Variables or Watch panel, right-click on a supported variable
- Select "View 2D/3D Data" from the context menu
- The visualization will open in a new tab
Features
🖼️ Mat Visualization
- View
cv::Mat images directly in VS Code during debugging
- Support for grayscale, RGB, and multi-channel images
- Support for various data types:
CV_8U, CV_32F, CV_64F, etc.
📊 Point Cloud Visualization
- View
std::vector<cv::Point3f>and std::vector<cv::Point3d> as 3D point clouds
- View
pcl::PointCloud<T> as 3D point clouds
- Interactive 3D rotation with mouse
💾 Export Options
- Save PNG: Export image as PNG file
- Save PCD: Export point cloud as PCD file
Supported Debuggers
| Compiler |
Extension |
cv::Mat |
Point Cloud |
Notes |
| MSVC |
C/C++ (cppvsdbg) |
✅ |
✅ |
Linux Windows |
| GCC |
C/C++ (cppdbg) |
✅ |
✅ |
Linux Windows |
| Clang+MSVC |
CodeLLDB |
✅ |
❌ |
Linux Windows |
| Clang |
CodeLLDB |
✅ |
✅ |
Linux MacOS |
| |