6. Utils
This section documents the command-line tools that ship with daslang: the live-reload application host, the test framework, the code coverage tool, the lint checker, the package manager, the MCP server for AI coding assistants, the cross-file duplicate-function detector and its AI judge, the runtime profiler and memory-leak tracker, and a cheat sheet for every built-in leak-detection mechanism.
- 6.1. daslang-live — Live-Reload Application Host
- 6.2. dastest — Test Framework
- 6.3. dascov — Code Coverage
- 6.4. lint — Paranoid, Performance, and Style
- 6.5. daspkg — Package Manager
- 6.5.1. Quick start
- 6.5.2. Why daspkg?
- 6.5.3. Commands
- 6.5.4. Package sources
- 6.5.5. The
.das_packagemanifest - 6.5.6. Install flow
- 6.5.7. Global modules
- 6.5.8. Project layout
- 6.5.9. Lock file
- 6.5.10. Package index
- 6.5.11. Use-case examples
- 6.5.12. Version model
- 6.5.13. Requirements
- 6.5.14. Architecture
- 6.6. MCP Server — AI Tool Integration
- 6.7. detect-dupe — Cross-file similar-function detector
- 6.8. find_dupe — AI judge for detect-dupe clusters
- 6.9. Profiler — Runtime Profiling
- 6.10. Memory Leak Detection — Diagnostics Cheat Sheet
- 6.10.1. At a glance
- 6.10.2. Picking the right tool
- 6.10.3. 1. daslang leak profiler (
--das-profiler-leaks) - 6.10.4. 2. C++ heap report (
-track-allocations -heap-report) - 6.10.5. 3. gc_node leak detection (automatic)
- 6.10.6. 4. Smart-pointer tracking (
--track-smart-ptr <hexId>) - 6.10.7. 5. JobStatus / Channel / LockBox tracker
- 6.10.8. 6. HandleRegistry (dasHV handle objects)
- 6.10.9. See also