lzanini / mdbook-katex

A preprocessor for mdBook, rendering LaTex equations to HTML at build time.
MIT License
195 stars 34 forks source link

Debugging the plugin #105

Closed alexander-myltsev closed 7 months ago

alexander-myltsev commented 7 months ago

Hi. I'm new to Rust. let me know if there's any better place to ask this question.

I'd like to debug the katex plugin in an Intellij IDE. How should I run the mdbook build command with plugged-in mdbook-katex on a real book so that the IDE might catch the breakpoint?

SichangHe commented 7 months ago

mdBook calls mdbook-katex via the shell when it needs it, which spawns child processes running mdBook-KaTeX. Input and output are handled using the old-school Stdio.

I don't know what you mean by "the katex plugin", but I hope my information helps.

alexander-myltsev commented 7 months ago

The plugin because mdbook authors call those.

Got that now. I thought katex is attached somehow on binary level to mdbook. But seems like all ways to interact with mdbook are done via std in/out.

Thanks for the explanation!