Enhancing Julia Debugging: Entry Points

未关闭
#340 0 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
julia
领域
devtools

调研方向

该 issue 未指定文件、测试或代码入口点。首先定位 debugger 在编译模式下的 breakpoint 处理逻辑,然后定义手动指定的入口点应如何触发自动 stepping,直到到达红色 breakpoint。完成的标准是:已明确规定所提议的入口点 workflow,并针对相关调试模式完成覆盖。

由索引模型根据 Issue 内容生成。

描述

Debugging in Julia can be significantly enhanced, particularly in dealing with large codebases, through the introduction of entry points.

When debugging extensive Julia code, the compiled mode proves to be practically useful due to its speed and freedom from conflicts with libraries. In contrast, the non-compiled mode easily becomes impractical due to its slow performance or potential library conflicts.

However, a notable drawback of the compiled mode is that it ignores breakpoints within sub-functions. Consequently, users are required to manually navigate through the code until the relevant subfunction is reached.

When repeatedly debugging functions at a deep level, the current approach involves placing breakpoints at all calling functions, necessitating multiple manual step-ins and step-outs to reach the desired section of code. This significantly disrupts the debugging flow and makes it challenging to maintain focus on the specific problem at hand.

Consider this idea: instead of manually stepping in and out at every level, why not let the Julia Debugger handle it automatically? If, instead of setting red breakpoints at all calling functions, users could designate orange entrance points, the debugger could identify these entry points and execute step-ins and step-outs automatically until the first red breakpoint is encountered.

Introducing this feature would greatly enhance the debugging experience, providing a more streamlined and focused approach to identifying and resolving issues in the code.

Note: If you can create a function that can find the entry points on its own, we’ll have a debugger that’s as good as those in other languages, but with the speed of Julia! This would make Julia even more appealing. However, I see this as a second step. First, I strongly suggest to improve the efficiency by manually setting the entry points. Right now, debugging in Julia becomes difficult as the project gets bigger.

主要语言
Julia
星标
515
派生
50
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JuliaDebug/Debugger.jl 的其他 Issue

查看 JuliaDebug/Debugger.jl 的全部 Issue

相似的 Issue

更多 Julia Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。