Skip to content

Latest commit

 

History

History
93 lines (49 loc) · 3.64 KB

Debugging-atom.md

File metadata and controls

93 lines (49 loc) · 3.64 KB

Debugging atom

Is there something wrong with atom? Here are some things that might help you.

Resources

https://flight-manual.atom.io/ - "the one and only book on everything Atom"

https://github.com/atom/atom/discussions - general discussion

https://github.com/atom/atom/issues - discuss issues

https://flight-manual.atom.io/api - Atom api, might be outdated

https://github.com/atom - There are so many dependencies and stuff under the atom organization

Open the command pallete

Usually the "keybinding" (Mac cmd+shift+p, windows/linux ctrl+shift+p) opens the command pallete.

You could also do this with View > Toggle Command Pallete if that doesn't work

image

Also: https://flight-manual.atom.io/getting-started/sections/atom-basics/#command-palette

Open devtools

How to open devtools is randomly described in places such as https://flight-manual.atom.io/using-atom/sections/basic-customization/#style-tweaks

In windows it's ctrl+shift+i

Inspect element

Once you've opened devtools, either by keyboard or with Window: Toggle Dev Tools (see link), you can inspect element by clicking here:

windows gets ctrl+shift+c, should be the same as in chrome so search online for other platforms

Then click whatever you want to inspect.

Example: atom/atom#23150 (reply in thread)

Console

In the image above, you can see I am on the console tab. Select the console tab to see any error/warn/info/log/debug messages.

Adding atom to path / adding atom shell commands

Try https://stackoverflow.com/q/22390709 (Atom > Install Shell Commands), but if that doesn't work:

By default the atom folder is at C:\Users\<name>\AppData\Local\atom (or atom-beta or atom-nightly) (for windows, might need to search for other operating systems, also AppData is a hidden folder by default).

And the binaries are at <atom folder>\bin.

Add <atom folder>\bin to path (the process for this depends on your operating system, searching "add to path " gets many helpful links)

Opening atom in dev/safe mode

There are commands for that: Application: Open Dev and Application: Open Safe

If you've added Atom to path

The command is atom --safe or atom --dev or even atom --dev --safe

Note: If you're using atom-beta or atom-nightly, the command is atom-beta <flags> or atom-nightly <flags>.

Package installing

Install packages at https://atom.io/packages (now https://web.pulsar-edit.dev/packages) or in settings > install

If the package has not been published, either publish it or apm link (see details)

If you've added Atom to path

The command to install a package (or git_remote or github_username/github_repo, see apm help install) is apm install <package_name>.

The command to install a locally downloaded/created package is apm link or apm-beta link

Note: If you're using atom-beta or atom-nightly, the commands are atom-<beta or nightly> <flags>

Screenshots

In windows, if you don't know about win+ctrl+s, you're missing out.

Screenshots are so helpful and easy because you can just paste them directly into many places on github.

Common errors

There are 410 issues with the text keyboard-layout-manager.node (https://github.com/atom/atom/search?q=keyboard-layout-manager.node&type=issues)