jazzdotdev / jazzdotdev/jazz

Modify Lua module loader to trace each file as it's executed

Open
#167 2 comments 0 reactions 1 assignee Claimed by @Arnaz87 View on GitHub
progress/1 size/0.5 track/unscoped value/0.75
Dominant language
Rust
Stars
147
Forks
10
PR merge metrics
No merged PRs in 30d

Description

If we can prepend every Lua file Torchbear runs with
```
log.trace("running: " .. debug.getinfo(1, 'S').source)
```
Then it'd be much easier to debug.

Since bridge.lua already sends off into the app, I think we'd have to modify the package searcher to basically do standard `require()`, but just add that one liner ahead of the module to run.

Possible?

---
or add `need`, `use`, or `run` instead of require

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.