Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
850b5cd3
Commit
850b5cd3
authored
Oct 03, 2018
by
Iuri Matias
Committed by
yann300
Nov 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename parent to debugger
parent
d4db63f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
stepManager.js
src/app/debugger/debugger/stepManager.js
+9
-12
No files found.
src/app/debugger/debugger/stepManager.js
View file @
850b5cd3
...
...
@@ -3,10 +3,10 @@ var EventManager = remixLib.EventManager
class
DebuggerStepManager
{
constructor
(
_debugger
,
_
traceManager
)
{
constructor
(
_debugger
,
traceManager
)
{
this
.
event
=
new
EventManager
()
this
.
parent
=
_debugger
this
.
traceManager
=
_
traceManager
this
.
debugger
=
_debugger
this
.
traceManager
=
traceManager
this
.
currentStepIndex
=
0
this
.
traceLength
=
0
this
.
revertionPoint
=
null
...
...
@@ -17,7 +17,7 @@ class DebuggerStepManager {
listenToEvents
()
{
const
self
=
this
this
.
parent
.
event
.
register
(
'newTraceLoaded'
,
this
,
function
()
{
this
.
debugger
.
event
.
register
(
'newTraceLoaded'
,
this
,
function
()
{
self
.
traceManager
.
getLength
(
function
(
error
,
newLength
)
{
if
(
error
)
{
return
console
.
log
(
error
)
...
...
@@ -30,9 +30,9 @@ class DebuggerStepManager {
})
})
this
.
parent
.
callTree
.
event
.
register
(
'callTreeReady'
,
()
=>
{
if
(
self
.
parent
.
callTree
.
functionCallStack
.
length
)
{
self
.
jumpTo
(
self
.
parent
.
callTree
.
functionCallStack
[
0
])
this
.
debugger
.
callTree
.
event
.
register
(
'callTreeReady'
,
()
=>
{
if
(
self
.
debugger
.
callTree
.
functionCallStack
.
length
)
{
self
.
jumpTo
(
self
.
debugger
.
callTree
.
functionCallStack
[
0
])
}
})
...
...
@@ -133,14 +133,11 @@ class DebuggerStepManager {
}
jumpNextBreakpoint
()
{
// TODO: this is the same currentStepIndex var but currently coupled all the way up to EthDebuggerUI
// the trigger in updateStep is updating it in EthDebuggerUI
// the refactor should remove it
this
.
parent
.
breakpointManager
.
jumpNextBreakpoint
(
this
.
currentStepIndex
,
true
)
this
.
debugger
.
breakpointManager
.
jumpNextBreakpoint
(
this
.
currentStepIndex
,
true
)
}
jumpPreviousBreakpoint
()
{
this
.
parent
.
breakpointManager
.
jumpPreviousBreakpoint
(
this
.
currentStepIndex
,
true
)
this
.
debugger
.
breakpointManager
.
jumpPreviousBreakpoint
(
this
.
currentStepIndex
,
true
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment