-
Some of my code does not have debug-info; source locations and stracktrace shows |
Beta Was this translation helpful? Give feedback.
Answered by
matz
Jun 12, 2021
Replies: 2 comments 5 replies
-
The easiest way is adding |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
matz
-
Sure; FILE* fp = fopen(name, "rbe");
if (fp != nullptr) {
auto* ctx = mrbc_context_new(mrb);
ctx->capture_errors = true;
mrbc_filename(mrb, ctx, name);
ctx->lineno = 1;
mrb_load_file_cxt(mrb, fp, ctx);
mrbc_context_free(mrb, ctx);
fclose(fp);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The easiest way is adding
conf.enable_debug
in your build config file.