Skip to content

Instantly share code, notes, and snippets.

@otw1248
Last active January 22, 2020 03:07
Show Gist options
  • Save otw1248/76c0953b4e2aaecdf8d8b0560a38288b to your computer and use it in GitHub Desktop.
Save otw1248/76c0953b4e2aaecdf8d8b0560a38288b to your computer and use it in GitHub Desktop.
accounting

TAG: accounting, track, version control

When debugging the program, may try to change many plances, how to track this? 当调试程序时,可能会修改源代码或者配置文件或者某个参数, 如何跟踪这些变化呢?

Locally, it's better to do any change in an IDE(IntellijIDEA or Eclipse), which has local history fuction to store recently changes. 如果仅仅是本地修改,建议使用 基础开发工具来做修改,它有本地历史的功能可以查看最近的变动。

If changes should be shared many places, it's better to take use of version control tool, svn or git. 如果变动需要在多个地方共享,可以使用版本工具。

IntellijIDEA-local history

E.g 举例

There is an issue, can't start the JVM ,after changing the JDK to OpenJDK. When trying to fix it, wrongly modifying a configuration file by commenting a parameter and then cause another issue which took 2 hours to debug. 当尝试取代JDK成开源的OpenJDK时,遇到一个问题,无法启动JVM。在解决这个问题时,错误的把一个配置文件里面的某个参数注解了,从而导致程序不工作而花了两个小时来解决这个问题。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment