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
46cc1235
Commit
46cc1235
authored
Sep 19, 2018
by
Iuri Matias
Committed by
yann300
Nov 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move memory event to vmdebugger class
parent
1d60bc4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
VmDebugger.js
src/app/debugger/debuggerUI/VmDebugger.js
+10
-13
No files found.
src/app/debugger/debuggerUI/VmDebugger.js
View file @
46cc1235
...
@@ -80,6 +80,15 @@ class VmDebuggerLogic {
...
@@ -80,6 +80,15 @@ class VmDebuggerLogic {
self
.
event
.
trigger
(
'traceManagerCallDataUpdate'
,
[
calldata
])
self
.
event
.
trigger
(
'traceManagerCallDataUpdate'
,
[
calldata
])
}
}
})
})
self
.
_traceManager
.
getMemoryAt
(
index
,
function
(
error
,
memory
)
{
if
(
error
)
{
console
.
log
(
error
)
self
.
event
.
trigger
(
'traceManagerMemoryUpdate'
,
[{}])
}
else
if
(
self
.
_parentUI
.
currentStepIndex
===
index
)
{
self
.
event
.
trigger
(
'traceManagerMemoryUpdate'
,
[
ui
.
formatMemory
(
memory
,
16
)])
}
})
})
})
}
}
...
@@ -101,19 +110,7 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca
...
@@ -101,19 +110,7 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca
this
.
vmDebuggerLogic
.
event
.
register
(
'traceManagerCallDataUpdate'
,
this
.
calldataPanel
.
update
.
bind
(
this
.
calldataPanel
))
this
.
vmDebuggerLogic
.
event
.
register
(
'traceManagerCallDataUpdate'
,
this
.
calldataPanel
.
update
.
bind
(
this
.
calldataPanel
))
this
.
memoryPanel
=
new
MemoryPanel
()
this
.
memoryPanel
=
new
MemoryPanel
()
_parentUI
.
event
.
register
(
'indexChanged'
,
this
,
function
(
index
)
{
this
.
vmDebuggerLogic
.
event
.
register
(
'traceManagerMemoryUpdate'
,
this
.
memoryPanel
.
update
.
bind
(
this
.
memoryPanel
))
if
(
index
<
0
)
return
if
(
_parentUI
.
currentStepIndex
!==
index
)
return
_traceManager
.
getMemoryAt
(
index
,
function
(
error
,
memory
)
{
if
(
error
)
{
console
.
log
(
error
)
self
.
memoryPanel
.
update
({})
}
else
if
(
_parentUI
.
currentStepIndex
===
index
)
{
self
.
memoryPanel
.
update
(
ui
.
formatMemory
(
memory
,
16
))
}
})
})
this
.
callstackPanel
=
new
CallstackPanel
()
this
.
callstackPanel
=
new
CallstackPanel
()
_parentUI
.
event
.
register
(
'indexChanged'
,
this
,
function
(
index
)
{
_parentUI
.
event
.
register
(
'indexChanged'
,
this
,
function
(
index
)
{
...
...
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