adonis0147 opened a new issue, #19044: URL: https://github.com/apache/doris/issues/19044
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Description Errors occur when debugging with GDB. ```shell (gdb) r Starting program: /Programs/doris/output/be/lib/doris_be [Thread debugging using libthread_db enabled] Using host libthread_db library "/devel/compiler/lib/libthread_db.so.1". [New Thread 0x7ffff3e9f6c0 (LWP 366102)] [New Thread 0x7ffff17ff6c0 (LWP 366105)] Environment variable CLASSPATH not set! getJNIEnv: getGlobalJNIEnv failed WARNING: Logging before InitGoogleLogging() is written to STDERR W0425 06:19:10.467833 366095 doris_main.cpp:392] Failed to initialize JNI: [INTERNAL_ERROR]Failed to get/create JVM ==366095==LeakSanitizer has encountered a fatal error. ==366095==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1 ==366095==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc) [Thread 0x7ffff17ff6c0 (LWP 366105) exited] [Thread 0x7ffff3e9f6c0 (LWP 366102) exited] [Inferior 1 (process 366095) exited with code 01] ``` ### Solution BE with java support needs some environment variables to start up and we have set them up in the start scripts such as `start_be.sh`. However, if we debug BE directly, these environment variables are not set by default. For the convenience, we should provide default environment variables under this scenario. ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org