I have just began working on Atom.io Package development, and based on this tutorial, have learnt from how to create package development skelton file to how to publish your package.
However, I do not know how to check/debug/develop your package. I know I can use Jasmine via alt-cmd-I
or Developer Console (for Atom is based on Chromium), still if you want to check the behavior of your package, do I have to re-publish or install your package manually every time?
Open the debug view by pressing ctrl+alt+d , selecting 'Toggle Debugging' from the Command Palette or php-debug menu. Start the script with Xdebug enabled. If everything is setup correctly, the entire line of the breakpoint will be highlighted in green, indicating the current line of the script.
Debugging. To use a Python debugger in Atom, you will need to install the python-debugger package. Once installed, turn on the debugger by going to Packages -> python-debugger -> Toggle .
When working on packages locally, here's the recommended workflow:
apm develop <package-name>
. This will clone the package's repo to your local ~/.atom/dev/packages/<package-name>
cd
into this directoryatom -d .
Now you can work on the package, make changes, etc. Once you're ready to reload, you can use View > Developer > Reload Window
to restart Atom with the changed package.
If you have your package sources locally on your machine, you can skip the first step (apm develop
) and simply create a symbolic link from your sources to ~/.atom/dev/packages/<package-name
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With