如何在atom的包中设置断点? [英] How do I set a breakpoint inside of atom's package?

查看:152
本文介绍了如何在atom的包中设置断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚为什么这个原子包 https://github.com/AtomLinter/linter -elixirc/行为不正常.它的作者说,我应该在软件包的某些功能中设置一个断点,以查看发生了什么.我不知道在运行原子时该怎么做.

I am trying to figure out why this atom package https://github.com/AtomLinter/linter-elixirc/ misbehaves. Its author said I should set a breakpoint in some function of the package to see what's going on there. I have no idea how to do that while running atom.

这是我正在谈论的评论: https://github .com/AtomLinter/linter-elixirc/issues/63#issuecomment-214916262

Here is the comment I am talking about: https://github.com/AtomLinter/linter-elixirc/issues/63#issuecomment-214916262

推荐答案

当您使用Atom时,点击Ctrl+Alt+I(或单击View-> Developer-> Toggle Developer Tools)将打开开发人员工具.如果您知道Chrome开发者工具,则外观相同.然后,只需导航到源代码,找到您的程序包并设置断点即可.从菜单转到视图->开发人员->重新加载窗口(或Alt + Ctrl + R)重新运行,以便程序可以达到这些断点.

When you're in Atom, hitting Ctrl+Alt+I (or View -> Developer -> Toggle Developer Tools) will open developer tools. If you know Chrome dev tools, it looks the same. Then just navigate to sources, find your package and set breakpoints. From menu go to view -> Developer -> reload window (or Alt + Ctrl + R) to re-run, so program can hit those breakpoints.

这篇关于如何在atom的包中设置断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆