You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by yc-huang <no...@github.com> on 2020/06/25 06:42:41 UTC

[apache/incubator-teaclave] Is there any best practice to debug builtin function (#371)

I'm trying to add some new builtin functions, but found it's very time costy to debug; I'm wondering if there's some suggestions on:
1. After mading some changes to the builtin function/executor code, what's the fatest way to re-compile/deploy those changes?
2. What's the best way to log out some debug informations in my builtin functions? 

Thanks,
YC

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/371

Re: [apache/incubator-teaclave] Is there any best practice to debug builtin function (#371)

Posted by Mingshen Sun <no...@github.com>.
I'm closing this issue. Feel free to reopen or create a new one if you have further questions. Thanks.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/371#issuecomment-652115187

Re: [apache/incubator-teaclave] Is there any best practice to debug builtin function (#371)

Posted by Mingshen Sun <no...@github.com>.
1. I suggest to compile (`make teaclave_unit_tests`) and run (`make run-unit-tests`) unit tests. You can see other builtin function implementations.
2. You can use `log::debug!()`. Then run services or tests with `RUST_LOG=teaclave=debug` env set.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/371#issuecomment-649280581

Re: [apache/incubator-teaclave] Is there any best practice to debug builtin function (#371)

Posted by Mingshen Sun <no...@github.com>.
You can find more about our build system in this doc: https://teaclave.apache.org/docs/build-system/

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/371#issuecomment-649281747

Re: [apache/incubator-teaclave] Is there any best practice to debug builtin function (#371)

Posted by Mingshen Sun <no...@github.com>.
Closed #371.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/371#event-3500134514