如何在 atom 的包内设置断点?

How do I set a breakpoint inside of atom#39;s package?(如何在 atom 的包内设置断点?)

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

问题描述

我试图弄清楚为什么这个原子包 https://github.com/AtomLinter/linter-elixirc/ 行为不端.它的作者说我应该在包的某些功能中设置一个断点,看看那里发生了什么.我不知道在运行 atom 时如何做到这一点.

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 的包内设置断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:如何在 atom 的包内设置断点?

基础教程推荐