Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Commit

Permalink
preparing to release
Browse files Browse the repository at this point in the history
  • Loading branch information
SqrTT committed May 2, 2016
1 parent 60608b1 commit cdb1ff3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@

# bart package
# Bart

Demandware file uploader
Demandware file uploader & script debugger


### Usage

After installing Bart package, in Atom appear additional item in main menu with same name `Bart`. This item contain three subitems:

* Upload all cartridges - actually upload all cartridges to the sandbox (zip, upload and unzip on SB). Currently only first folder in project will be uploaded.
* Open settings... - Opens configuration of current sandbox like a hostname, username, password, codeversion and list of files that should be watched. Last option is used to watch files that should be uploaded to SB when change by some other program i.e. on build and minify by gulp/grant, and is not opened in IDE. Each file should have absolute path and can end by mask i.e. `/.../cartridges/app_core/cartridge/static/default/js/*`
* Open/close debugger - simply toggle debugger's panel.

To start debug you heed to set breakpoint first. To do so, just open file set text cursor in required place and press F9. After breakpoint is set open in browser required page. You will see that page is loading too long. So it's time to press `Manual Update` button in debugger panel (last button in row). After that you should see stack trace and list of variables.
Other buttons should be obvious.

Also in context menu of file/editor you will see two additional items: upload file and toggle breakpoint.


It's recommended to install also [language-demandware](https://atom.io/packages/language-demandware) for syntax highlight of Demandware files.
5 changes: 2 additions & 3 deletions lib/Debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,8 @@ export default class Debugger {
const brk = breakpointMgr.findBreakpoint(file, line);

if (brk) {
this.connectionInstanse.removeBreakpoints(brk.id).then(() => {
breakpointMgr.remove(brk);
}, err => {
breakpointMgr.remove(brk);
this.connectionInstanse.removeBreakpoints(brk.id).then(null, err => {
atom.notifications.addError('Removing breakpoint ' + err);
})
} else {
Expand Down
6 changes: 3 additions & 3 deletions lib/DebuggerView.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ const MainView = React.createClass({
<div className="b-bart-debugger_panel block" contenteditable="true">
<atom-panel class="b-bart_parent_stack left">
<div className="inline-block btn-group">
<button onClick={this.emit.bind(this, 'close')} className="icon icon-remove-close btn" title="close debugger SHIFT-F12"></button>
<button onClick={this.emit.bind(this, 'stop')} className="icon icon-primitive-square btn" title="stop SHIFT-F8"></button>
<button onClick={this.emit.bind(this, 'close')} className="icon icon-remove-close btn" title="close debugger F12"></button>
<button onClick={this.emit.bind(this, 'stop')} className="icon icon-primitive-square btn" title="stop"></button>
<button onClick={this.emit.bind(this, 'resume')} className="icon icon-playback-play btn" title="resume F8"></button>
<button onClick={this.emit.bind(this, 'stepover')} className="icon icon-jump-right btn" title="step over F10"></button>
<button onClick={this.emit.bind(this, 'stepin')} className="icon icon-jump-down btn" title="step in F11"></button>
<button onClick={this.emit.bind(this, 'stepout')} className="icon icon-jump-up btn" title="step out SHIFT-F11"></button>
<button onClick={this.emit.bind(this, 'update')} className="icon icon-repo-sync btn" title="manual update F12"></button>
<button onClick={this.emit.bind(this, 'update')} className="icon icon-repo-sync btn" title="manual update"></button>
</div>
<StackView thread={this.state.thread} onSelectFrame={this.onSelectFrame} selected={this.state.selectedFrame}/>
</atom-panel>
Expand Down

0 comments on commit cdb1ff3

Please sign in to comment.