개발 공부

빌드 시 --stacktrace 옵션 실행하는 방법 본문

Spring/Spring Boot

빌드 시 --stacktrace 옵션 실행하는 방법

hyecozy 2022. 9. 14. 17:27
FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

이런 로그가 떴는데

Gradle build daemon disappeared unexpectedly에 대해서는 메모리 문제일 확률이 높기 때문에 ec2 스펙업을 하라는 해결 방법이 제일 많았다.

근데 나는 책을 따르고 있었고 책에서는 스펙업을 하라는 말이 없었으므로... 도대체 어디가 문제인지 알기 위해 아래의 Try 부분을 실행하고 싶었다.

 

근데 저걸 어떻게 쓰는지 몰라서 찾아봄

cd 실행할 파일이 있는 디렉토리
./파일명 assembleDebug --stacktrace

이렇게 하니 원하는 대로 실행됐다.

그리고...? 위에서 본 에러도 사라짐 🤔

우선은 나중에도 쓸 것 같아서 블로그에 메모해 두기

 

 

 

 

참고

https://negabaro.github.io/archive/flutter-How-to-Run-with-stacktrace-option-to-get-the-stack-trace

 

Comments