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

Tool Purpose Recommended By
CMake Build system ViewTouch contributors
QT Creator Primary IDE NeroBurner
SourceTrail Code exploration NeroBurner
Eclipse CDT Alternative IDE Nicholas Turnbull
Valgrind Memory debugging Sergii Pylypenko
cppcheck Static analysis Community

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