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
d2e849fe
Commit
d2e849fe
authored
Jun 29, 2020
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add panel to show function calls
parent
37e78ea1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
VmDebugger.js
src/app/tabs/debugger/debuggerUI/VmDebugger.js
+13
-0
FunctionPanel.js
src/app/tabs/debugger/debuggerUI/vmDebugger/FunctionPanel.js
+17
-0
No files found.
src/app/tabs/debugger/debuggerUI/VmDebugger.js
View file @
d2e849fe
...
...
@@ -6,6 +6,7 @@ var CodeListView = require('./vmDebugger/CodeListView')
var
CalldataPanel
=
require
(
'./vmDebugger/CalldataPanel'
)
var
MemoryPanel
=
require
(
'./vmDebugger/MemoryPanel'
)
var
CallstackPanel
=
require
(
'./vmDebugger/CallstackPanel'
)
var
FunctionPanel
=
require
(
'./vmDebugger/FunctionPanel'
)
var
StackPanel
=
require
(
'./vmDebugger/StackPanel'
)
var
StoragePanel
=
require
(
'./vmDebugger/StoragePanel'
)
var
StepDetail
=
require
(
'./vmDebugger/StepDetail'
)
...
...
@@ -48,6 +49,16 @@ function VmDebugger (vmDebuggerLogic) {
this
.
stackPanel
=
new
StackPanel
()
this
.
vmDebuggerLogic
.
event
.
register
(
'traceManagerStackUpdate'
,
this
.
stackPanel
.
update
.
bind
(
this
.
stackPanel
))
this
.
functionPanel
=
new
FunctionPanel
()
this
.
vmDebuggerLogic
.
event
.
register
(
'functionsStackUpdate'
,
(
stack
)
=>
{
if
(
stack
===
null
)
return
let
functions
=
[]
for
(
let
func
of
stack
)
{
functions
.
push
(
func
.
functionDefinition
.
attributes
.
name
+
'('
+
func
.
inputs
.
join
(
', '
)
+
')'
)
}
this
.
functionPanel
.
update
(
functions
)
})
this
.
storagePanel
=
new
StoragePanel
()
this
.
vmDebuggerLogic
.
event
.
register
(
'traceManagerStorageUpdate'
,
this
.
storagePanel
.
update
.
bind
(
this
.
storagePanel
))
...
...
@@ -107,6 +118,7 @@ function VmDebugger (vmDebuggerLogic) {
self
.
asmCode
.
basicPanel
.
show
()
self
.
stackPanel
.
basicPanel
.
show
()
self
.
functionPanel
.
basicPanel
.
show
()
self
.
storagePanel
.
basicPanel
.
show
()
self
.
memoryPanel
.
basicPanel
.
show
()
self
.
calldataPanel
.
basicPanel
.
show
()
...
...
@@ -149,6 +161,7 @@ VmDebugger.prototype.render = function () {
${
this
.
solidityLocals
.
render
()}
${
this
.
solidityState
.
render
()}
${
this
.
stackPanel
.
render
()}
${
this
.
functionPanel
.
render
()}
${
this
.
memoryPanel
.
render
()}
${
this
.
storagePanel
.
render
()}
${
this
.
callstackPanel
.
render
()}
...
...
src/app/tabs/debugger/debuggerUI/vmDebugger/FunctionPanel.js
0 → 100644
View file @
d2e849fe
'use strict'
var
DropdownPanel
=
require
(
'./DropdownPanel'
)
var
yo
=
require
(
'yo-yo'
)
function
FunctionPanel
()
{
this
.
basicPanel
=
new
DropdownPanel
(
'Function'
,
{
json
:
true
,
displayContentOnly
:
false
})
}
FunctionPanel
.
prototype
.
update
=
function
(
calldata
)
{
this
.
basicPanel
.
update
(
calldata
)
}
FunctionPanel
.
prototype
.
render
=
function
()
{
return
yo
`<div id="FunctionPanel">
${
this
.
basicPanel
.
render
()}
</div>`
}
module
.
exports
=
FunctionPanel
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