Skip to content

Commit 674b803

Browse files
author
Jayesh Nirve
authored
Merge pull request #1 from Techno-Disaster/master
PyPi Release
2 parents c5a64a0 + a1f12d9 commit 674b803

17 files changed

+608
-8
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
# TDebugger
22
A advanced python debugger with live tracing
3+
## Installation
4+
Use the `pip` package manager to install TDebugger
5+
```shell script
6+
pip install TDebugger
7+
```
8+
Then, you can run it as a command-line tool:
9+
```shell script
10+
TDebugger.py --help
11+
```
12+
313
## Output:
414
![video](assets/tdebugger.gif)
5-
![output](https://github.com/Techno-Disaster/TDebugger/blob/master/images/py5.png)
15+
![output](https://github.com/Techno-Disaster/TDebugger/blob/master/assets/py6binarysearch.png)
616

717

818

TDebugger.egg-info/PKG-INFO

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Metadata-Version: 2.1
2+
Name: TDebugger
3+
Version: 0.1.0
4+
Summary: A advanced python debugger with live tracing that outputs video logs of a program's execution.
5+
Home-page: https://github.com/CCExtractor/TDebugger
6+
Author: Jayesh Nirve
7+
Author-email: [email protected]
8+
License: UNKNOWN
9+
Description: # TDebugger
10+
A advanced python debugger with live tracing
11+
## Installation
12+
Use the `pip` package manager to install TDebugger
13+
```shell script
14+
pip install TDebugger
15+
```
16+
Then, you can run it as a command-line tool:
17+
```shell script
18+
TDebugger.py --help
19+
```
20+
21+
## Output:
22+
![video](assets/tdebugger.gif)
23+
![output](https://github.com/Techno-Disaster/TDebugger/blob/master/assets/py6binarysearch.png)
24+
25+
26+
27+
Moving to CCextracter.
28+
29+
Platform: UNKNOWN
30+
Classifier: Programming Language :: Python :: 3
31+
Classifier: Programming Language :: Python :: 3.7
32+
Description-Content-Type: text/markdown

TDebugger.egg-info/SOURCES.txt

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
README.md
2+
setup.py
3+
TDebugger/TDebugger.py
4+
TDebugger.egg-info/PKG-INFO
5+
TDebugger.egg-info/SOURCES.txt
6+
TDebugger.egg-info/dependency_links.txt
7+
TDebugger.egg-info/entry_points.txt
8+
TDebugger.egg-info/requires.txt
9+
TDebugger.egg-info/top_level.txt
10+
TDebugger/TestAlgos/sorting.py
11+
TDebugger/TestAlgos/test.py
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

TDebugger.egg-info/entry_points.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[console_scripts]
2+
TDebugger = TDebugger.TDebugger:main
3+

TDebugger.egg-info/requires.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Pillow
2+
opencv-python
3+
numpy
4+
pyyaml

TDebugger.egg-info/top_level.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TDebugger

TDebugger.py TDebugger/TDebugger.py

+12-7
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,20 @@ def funcarg(argument):
339339

340340
debugGroup = parser.add_argument_group(
341341
title="Analysis")
342-
debugGroup.add_argument("--debug", "-d", metavar="FILE")
343-
debugGroup.add_argument("--function", "-f", nargs='*',
344-
)
342+
debugGroup.add_argument("--debug", "-d", help=".\n".join(
343+
["Path of a *.py file to debug", "Example: '--debug/-d main.py' will run the file main.py."]), metavar="FILE")
344+
debugGroup.add_argument("--function", "-f", help=".\n".join(
345+
["If --debug FILE is present, optionally provide the name of a function to debug and function arguments", "(defaults to main with no arguments)",
346+
"Example: '--func/-f foo 10' will run foo(10)."]), nargs='+', default=["main"], metavar=("FUNC", "PARAMETER"))
345347

346-
debugGroup.add_argument("--output", "-o", metavar="FILE")
348+
349+
debugGroup.add_argument("--output", "-o", help="./n".join(
350+
["will output the logs in result.json file \nIMPORTANT name output file 'result.json' if you want to create a video later, \nExample: ' TDebugger -d foo.py -f test2 10 -o result.json'"]), metavar="FILE")
347351

348352
printGroup = parser.add_argument_group(
349353
title="Reporting")
350-
printGroup.add_argument("--parse", "-p", metavar="FILE")
354+
printGroup.add_argument("--parse", "-p", help="./n".join(
355+
["parses a .json file(eg. the result.json file created with --output/-o argument) file in readable format."]), metavar="FILE")
351356
videoGroup = parser.add_argument_group(
352357
title="Video Reporting", description="Generating a video displaying the program's flow and execution.")
353358
videoGroup.add_argument("--video", "-v",
@@ -371,7 +376,7 @@ def funcarg(argument):
371376
terminal = Terminal(results)
372377
terminal.terminal()
373378
with open(
374-
"/home/Techno-Disaster/PycharmProjects/TechnoDebugger/result.json", "wb") as f:
379+
"./result.json", "wb") as f:
375380
pickle.dump(results, f)
376381

377382
elif args.parse:
@@ -385,4 +390,4 @@ def funcarg(argument):
385390
reporter = VideoOutput(args.video[0], args.video[1], parsed_data)
386391
reporter.generate_video(args.video[3])
387392
else:
388-
print("Run <<\"python3 TDebugger.py --help\">>")
393+
print("Run <<\"TDebugger --help\">>")
File renamed without changes.
File renamed without changes.

TDebugger/video.mp4

1.68 MB
Binary file not shown.

0 commit comments

Comments
 (0)