-
Rust Perseus __ Debugging 하는 법(FullStack)코딩Coding/Rust❤️Optimization❤️ 2023. 6. 29. 20:59728x90
Engine-side logging However, if you try to, say, call dbg!() in your build-time logic, you might discover that you get absolutely zilch output in the console unless the whole process fails. This is because Perseus takes the conservative route, and only prints the output of its undelrying calls to cargo if the build process fails. This can make subtle logic errors very difficult to debug, so Perseus provides the snoop commands to help you. There are three: $ perseus snoop build will run the build process directly, with no frills, allowing you to see all the output of your own code (Perseus performs no logging) $ perseus snoop wasm-build will run the Wasm build process, which is just compiling your code to Wasm (you probably won't use this unless you're having Wasm-specific compiler errors) $ perseus snoop serve will run the server directly, allowing you to see any dbg!() calls or the like that occur on requests
https://framesurge.sh/perseus/en-US/docs/0.4.x/fundamentals/debugging
https://docs.rs/perseus/latest/perseus/
homepage만들고 얼마나 잘 만들었나 점수 체크하기
https://framesurge.sh/perseus/en-US/
반응형'코딩Coding > Rust❤️Optimization❤️' 카테고리의 다른 글
Items are entirely determined at compile-time, generally remain fixed during execution, and may reside in read-only memory (0) 2023.07.13 What is a Monad? 역시 하스켈에서 찾아봐야하나 모나드 (0) 2023.07.12 Back-end parallelism in the Rust compiler (0) 2023.07.11 웹 최적화 Optimize Interaction to Next Paint (0) 2023.06.29 Redox is a Unix-like Operating System written in Rust (0) 2023.06.28 [프로그래밍] Concurrency, Parallelism 차이 (0) 2023.06.23 Runtime cost of creating new struct with update syntax in Rust (0) 2023.06.22 Rust .gitignore 루틴 입력하기 귀찮았는데 👍 Good (0) 2023.06.21