Skip to content

IDE & Debugging

No0ne558 edited this page Oct 24, 2025 · 7 revisions

🛠️ ViewTouch Development Tools & IDEs

⚙️ Build System

ViewTouch contributors uniformly prefer CMake — a free, cross-platform family of tools designed to build, test, and package software.

🎯 CMake Benefits

  • Platform Independent: Simple configuration files work across platforms
  • Compiler Agnostic: Generates native makefiles and workspaces for any compiler environment
  • Flexible: Choose your preferred development tools and workflows

🖥️ Recommended Development Environment

NeroBurner's Recommendations

NeroBurner recommends:

🔗 Integration Setup

QT Creator can be configured to work with SourceTrail by adding the QT Creator plugin to SourceTrail.

🔧 Compiler Choice

  • Default: GCC
  • Alternative: Clang (for those preferring LLVM-based compilation)

🐛 Debugging Setup

QT offers comprehensive documentation for setting up debuggers of your choice.


🌟 Alternative IDE: Eclipse CDT

Nicholas Turnbull's Eclipse Setup

Nicholas Turnbull uses Eclipse C++ Development Toolkit and shares this optimization:

"I've found that of all the possible IDEs for reviewing and debugging ViewTouch, Eclipse C++ Development Toolkit turns out to be ideal. I'd been laboriously recompiling it via the command line and eventually it just got too much of a drag. By adding the -g flag to the cmake build file, setting Eclipse's build command to 'make install' from the /build directory and pointing the Run command to /usr/viewtouch/bin, it's possible to actually both debug and install a live system interactively with everything in the proper directories. The graphical interface to gdb in Eclipse allows the precise object fields to be inspected and the events traced, which is a huge help."

⚙️ Eclipse Configuration Steps

  1. Add -g flag to CMake build file for debugging symbols
  2. Set Eclipse build command to make install from /build directory
  3. Point Run command to /usr/viewtouch/bin
  4. Use Eclipse's graphical gdb interface for object inspection and event tracing

🖥️ Multi-Monitor Debugging Setup

💡 Pro Developer Tip

With HiDef displays costing as little as $50-$60, every developer can easily set up a dual-monitor debugging environment:

  • Monitor 1: Run the ViewTouch GUI
  • Monitor 2: Run your preferred IDE and debugger

This provides simultaneous viewing of:

  • 🎨 Live ViewTouch interface execution
  • 🔍 Code execution and debugging

🤔 The Reality Check

Some developers aren't using debuggers simply because they've never learned how. If debugging is a barrier, let's create an issue and provide a how-to guide for setting up dual-monitor debugging!

Relevant insights:About Debugging - 8 Things I Wish I Knew Earlier by Garret Polderman.


🔍 Code Analysis & Profiling Tools

🧠 Memory Analysis with Valgrind

Sergii Pylypenko reminds everyone to use Valgrind for memory debugging.

Qt Creator integrates Valgrind code analysis tools for:

  • 🔍 Detecting memory leaks
  • 📊 Profiling function execution
  • 🐛 Identifying memory-related bugs

🛡️ Static Analysis

Also recommended: cppcheck for static code analysis to catch potential issues before runtime.


🚀 Development Workflow Summary

ToolPurposeRecommended By
CMakeBuild systemViewTouch contributors
QT CreatorPrimary IDENeroBurner
SourceTrailCode explorationNeroBurner
Eclipse CDTAlternative IDENicholas Turnbull
ValgrindMemory debuggingSergii Pylypenko
cppcheckStatic analysisCommunity

Choose the tools that fit your workflow — ViewTouch development supports multiple IDEs and debugging approaches to accommodate different developer preferences and expertise levels.

Clone this wiki locally