Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger #297

Closed
wants to merge 66 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
67a32eb
Initial debugger implementation (still has bugs)
mostafa Jun 20, 2021
e988102
Refactor debugger line detection with a slightly better syntax
mostafa Jun 23, 2021
410153f
Add gray color to the printed lines (other than the current line)
mostafa Jun 23, 2021
b0c67ce
Replace new line character with NewLine constant
mostafa Jun 23, 2021
6513495
Fix issue with jumping lines after exec command
mostafa Jun 23, 2021
c6269dd
Print command searches in the global scope and returns the value of t…
mostafa Jun 23, 2021
a2ef8b2
Remove unimplemented message
mostafa Jun 23, 2021
638817f
Create a Debugger struct to make debugger self-contained with a refer…
mostafa Jun 25, 2021
b85e38c
Tranform debugger to use command pattern
mostafa Jun 25, 2021
219a83f
Add step-in and step-out command exec
mostafa Jun 25, 2021
ea63cc1
Go mod tidy
mostafa Jun 25, 2021
cd1e2b6
Export execute func from Command interface
mostafa Jun 25, 2021
1273366
Remove command vars and capitalize types
mostafa Jun 25, 2021
542d318
Add break on breakpoints functionality
mostafa Jun 25, 2021
7dd5cc2
Revert changes to compiler functions
mostafa Jun 26, 2021
f7aae8a
Emit debugger statement no matter what
mostafa Jun 26, 2021
d60ad71
Refactor breakpoints API
mostafa Jun 27, 2021
29e4bf6
Refactor eval and print
mostafa Jun 27, 2021
f788bb7
Implement new debugger API for all available (and and two unimplement…
mostafa Jun 27, 2021
0dc0120
Refactor API function's output to return Result object
mostafa Jun 27, 2021
1db95a8
Some refactorings (#1)
mstoykov Jun 29, 2021
3c6493c
Fix break on start
mostafa Jun 29, 2021
2922d3a
Remove REPL-related functions
mostafa Jun 29, 2021
19d72a4
Drop command pattern (#2)
mstoykov Jun 29, 2021
27de096
Break on program start
mostafa Jun 29, 2021
8a56829
Fix not halting execution
mostafa Jun 29, 2021
329135d
Fix next after breakpoints not exhausting
mostafa Jun 29, 2021
d13bf95
Add step in command
mostafa Jun 29, 2021
1e98881
Allow next to jump out of functions
mostafa Jun 29, 2021
52cbe60
Fix stepping out of functions with next
mostafa Jun 29, 2021
72d5f5f
Unexport NewDebugger as newDebugger and some cleanups
mostafa Jun 30, 2021
3bab3ec
Add ActivationReason type (string) and refactor constants
mostafa Jun 30, 2021
969025d
Refactor breakpoints to use map of string to ints for efficiency plus…
mostafa Jun 30, 2021
6ad822d
Simple test showing how debugger doesn't work with local variables (#3)
mstoykov Jul 1, 2021
5865405
Remove unnecessary slice for keeping track of the last line
mostafa Jul 1, 2021
21b70ab
Fail to report correct line
mostafa Jul 1, 2021
44b4e2a
Remove stale Breakpoint struct
mostafa Jul 1, 2021
17cc3d0
Basic fix to get compiler to always support dynamic resolution (#4)
mstoykov Jul 2, 2021
6755644
Prevent print from panicking
mostafa Jul 2, 2021
37b6624
Disable program start activation for now
mostafa Jul 2, 2021
8ef7ca5
Remove continue command (no longer needed)
mostafa Jul 3, 2021
092a512
Add test for next and continue
mostafa Jul 3, 2021
7246ae5
Add test for stepin and found DA bug in reporting incorrect lines
mostafa Jul 3, 2021
2d20774
Refactor and fix tests
mostafa Jul 3, 2021
dbc2bbe
Add test for list command
mostafa Jul 3, 2021
f0eff58
Add test for breakpoints (set, clear, list)
mostafa Jul 3, 2021
0f6e9d8
Rename and rework the attaching and detaching of a debugger (#5)
mstoykov Jul 5, 2021
0e48225
fiox debugger.Filename (#6)
mstoykov Jul 5, 2021
25a6839
Merge branch 'dop251:master' into debugger
mostafa Aug 20, 2021
5e9e0cb
Merge to dop251/goja master. (#8)
panzhongxian Dec 8, 2021
e214024
stop only one time on per breakpoint. fix mostafa/goja_debugger #5 (#7)
panzhongxian Dec 8, 2021
2844388
Merge branch 'master' into debugger
mostafa Dec 8, 2021
633c228
Merge branch 'dop251:master' into debugger
mostafa Dec 14, 2021
29943d0
Remove the second time break on parent function. (#10)
panzhongxian Dec 16, 2021
f551f10
Remove unused import
mostafa Dec 16, 2021
0870c93
Merge branch 'dop251:master' into debugger
mostafa Dec 23, 2021
8392612
Enhance removing duplicated breakpoints (origin #15) (#18)
mostafa Dec 23, 2021
92e793a
Add debug for builtin functions. (#19)
panzhongxian Dec 29, 2021
2d222ad
Merge branch 'dop251:master' into debugger
mostafa Jan 6, 2022
a8f33e4
Merge branch 'dop251:master' into debugger
mostafa Jan 10, 2022
6d48b3c
Replace all instances of (*T).Fatalf with (*T).Errorf to fix static c…
mostafa Jan 10, 2022
46e7726
Remove unnecessary assignment to the blank identifier (S1005)
mostafa Jan 10, 2022
e09a582
Merge branch 'dop251:master' into debugger
mostafa Feb 25, 2022
b6f74c0
Merge branch 'dop251:master' into debugger
mostafa Mar 29, 2022
b0814e3
Merge branch 'dop251:master' into debugger
mostafa Jun 8, 2022
15b05c6
Merge branch 'master' into debugger
mostafa Aug 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'dop251:master' into debugger
  • Loading branch information
mostafa authored Jun 8, 2022
commit b0814e34eeef8b0895b70b06e5c9a9e06ca77126

This merge commit was added into this branch cleanly.

There are no new changes to show, but you can still view the diff.