Skip to content

Commit

Permalink
added variable inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
agermanidis committed Oct 13, 2017
1 parent 9307c13 commit 8e7cf1f
Show file tree
Hide file tree
Showing 13 changed files with 47,886 additions and 26,389 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
![](https://i.imgur.com/dWEHzD0.gif)
![](https://i.imgur.com/36oEh3R.gif)

## Livepython
### Watch your Python run like a movie.

##### NOTE: Livepython is alpha software. It doesn't handle a lot of edge cases and features may change.

Livepython is a desktop app that lets you visually trace, in real-time, the execution of a Python program. It's meant to give you a quick grasp of a program's execution flow. It's less messy than sprinkling print statements throughout your code and simpler to use than debuggers/profilers.
Livepython is a desktop app that lets you visually trace, in real-time, the execution of a Python program. In addition, it can track changes in global and local variables as your program is running. Livepython meant to give you a quick grasp of a program's execution flow. It's less messy than sprinkling print statements throughout your code and simpler to use than debuggers/profilers.

Livepython can be launched from the command-line as easily as:

Expand All @@ -17,6 +17,8 @@ SPACE: Play/pause the program.

Left/Right Arrow: Change speed of execution.

V: Open/close Variable Inspector.

### Compatibility

| **Python Version** | **Compatible?** |
Expand All @@ -28,8 +30,6 @@ Left/Right Arrow: Change speed of execution.

### Installation



npm install livepython -g

### License
Expand Down
14 changes: 6 additions & 8 deletions bin/livepython
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ pythonProcess.stderr.on("data", data => {
})

pythonProcess.on("exit", (code) => {
if (code !== 0) {
electronProcess.kill('SIGINT')
process.exit();
}
electronProcess.kill('SIGINT')
process.exit();
})

electronProcess.on("message", msg => {
Expand All @@ -75,13 +73,13 @@ electronProcess.on("message", msg => {
})

function killSubprocesses (e) {
// console.log(e.toString())
electronProcess.kill("SIGINT")
pythonProcess.kill("SIGINT")
electronProcess.kill("SIGINT");
pythonProcess.kill("SIGINT");
process.exit();
}

process.on('exit', killSubprocesses)
process.on('SIGINT', killSubprocesses)
process.on("SIGUSR1", killSubprocesses)
process.on("SIGUSR2", killSubprocesses)
process.on("uncaughtException", killSubprocesses)
process.on("uncaughtException", killSubprocesses)
Loading

0 comments on commit 8e7cf1f

Please sign in to comment.