Baymine opened a new pull request, #61657:
URL: https://github.com/apache/doris/pull/61657
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
FE currently has no dedicated startup flag to enable remote JVM debugging.
To debug FE remotely, developers need to modify JVM options manually, which is
inconvenient and can easily conflict with existing Java options. This change
adds an opt-in `--debug` flag to `start_fe.sh`, introduces a configurable
`DEBUG_PORT` in `fe.conf`, validates the configured port, and appends the JDWP
agent option only when debug mode is explicitly enabled.
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [x] Manual test (add detailed scripts or steps below)
Manual test steps:
1. Configure `DEBUG_PORT` in `conf/fe.conf` or use the default value `5001`.
2. Start FE with `./bin/start_fe.sh --debug --daemon`.
3. Verify that the configured debug port is opened and a remote debugger can
attach successfully.
4. Start FE without `--debug` and verify that the debug port is not exposed.
- Behavior changed:
- [ ] No.
- [x] Yes. `./bin/start_fe.sh --debug` now starts FE with remote JVM
debug enabled on the configured `DEBUG_PORT`. The default startup behavior
without `--debug` is unchanged.
- Does this need documentation?
- [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]