mololab / json-translator

jsontt 💡 - AI JSON Translator with GPT + other FREE translation modules to translate your json/yaml files into other languages ✅ Check Readme ✌ Supports GPT / DeepL / Google / Bing / Libre / Argos
https://mololab.org/jsontt/npm
MIT License
465 stars 60 forks source link

Debugging with VSCODE #21

Closed edelciomolina closed 1 year ago

edelciomolina commented 1 year ago

I'm trying to use json-translator with a JSON that shows that the process is done, but without any translations. So, I hope to get help with debugging, but I don't have experience with this kind of structure to run and debug the CLI.

Can anyone help me with a launch.json to run TypeScript watch while running it in VS Code for debugging?

ParvinEyvazov commented 1 year ago

Hey @edelciomolina apologies, completely missed your issue 😲.

Unfortunately, debugging is always a headache on CLI.

There are some helpful commands on makefile to build and run cli on your local machine with using npm link.

You can run these make commands (for ex: make run-cli-mac) and that will build and link cli. Now you are running the cli from your local machine.