smart way to debug #5783

Closed
opened 2025-11-02 06:35:50 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @zhoutt96 on GitHub (Jul 24, 2020).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Hi gitea team, sorry to bother.
I am creating this issue to ask is there any smart way for debugging?
For now, when I do a change in backend, I need to rebuild the project everytime.
thanks.
...

Screenshots

Originally created by @zhoutt96 on GitHub (Jul 24, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description Hi gitea team, sorry to bother. I am creating this issue to ask is there any smart way for debugging? For now, when I do a change in backend, I need to rebuild the project everytime. thanks. ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/needs-feedback label 2025-11-02 06:35:50 -06:00
Author
Owner

@a1012112796 commented on GitHub (Jul 25, 2020):

Hello, you can try make help to get all build options, thanks.

@a1012112796 commented on GitHub (Jul 25, 2020): Hello, you can try ``make help`` to get all build options, thanks.
Author
Owner

@lunny commented on GitHub (Jul 25, 2020):

@a1012112796 @zhoutt96 I think debug is a low efficient development and it's not recommand by golang team. The best practice is writing unit test and add logs.

@lunny commented on GitHub (Jul 25, 2020): @a1012112796 @zhoutt96 I think debug is a low efficient development and it's not recommand by golang team. The best practice is writing unit test and add logs.
Author
Owner

@silverwind commented on GitHub (Jul 25, 2020):

I'd appreciate a watch-backend mode that rebuilds and runs whenever source files change.

Something like https://github.com/markbates/refresh or https://github.com/cosmtrek/air.

@silverwind commented on GitHub (Jul 25, 2020): I'd appreciate a `watch-backend` mode that rebuilds and runs whenever source files change. Something like https://github.com/markbates/refresh or https://github.com/cosmtrek/air.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5783