7. 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.
- 7.1. daslang-live — Live-Reload Application Host
- 7.2. dastest — Test Framework
- 7.3. dascov — Code Coverage
- 7.4. lint — Paranoid, Performance, and Style
- 7.5. daspkg — Package Manager
- 7.5.1. Quick start
- 7.5.2. Why daspkg?
- 7.5.3. Commands
- 7.5.4. Package sources
- 7.5.5. The
.das_packagemanifest - 7.5.6. Install flow
- 7.5.7. Global modules
- 7.5.8. Project layout
- 7.5.9. Lock file
- 7.5.10. Package index
- 7.5.11. Use-case examples
- 7.5.12. Version model
- 7.5.13. Requirements
- 7.5.14. Architecture
- 7.6. MCP Server — AI Tool Integration
- 7.7. detect-dupe — Cross-file similar-function detector
- 7.8. find_dupe — AI judge for detect-dupe clusters
- 7.9. Profiler — Runtime Profiling
- 7.10. Memory Leak Detection — Diagnostics Cheat Sheet
- 7.10.1. At a glance
- 7.10.2. Picking the right tool
- 7.10.3. 1. daslang leak profiler (
--das-profiler-leaks) - 7.10.4. 2. C++ heap report (
-track-allocations -heap-report) - 7.10.5. 3. gc_node leak detection (automatic)
- 7.10.6. 4. Smart-pointer tracking (
--track-smart-ptr <hexId>) - 7.10.7. 5. JobStatus / Channel / LockBox tracker
- 7.10.8. 6. HandleRegistry (dasHV handle objects)
- 7.10.9. See also