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
837a695b
Commit
837a695b
authored
Jun 23, 2016
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unload trace
parent
a690b964
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
10 deletions
+23
-10
CalldataPanel.js
src/CalldataPanel.js
+2
-1
CallstackPanel.js
src/CallstackPanel.js
+2
-1
Ethdebugger.js
src/Ethdebugger.js
+3
-1
MemoryPanel.js
src/MemoryPanel.js
+2
-1
Slider.js
src/Slider.js
+1
-0
StackPanel.js
src/StackPanel.js
+2
-1
Sticker.js
src/Sticker.js
+8
-4
StoragePanel.js
src/StoragePanel.js
+2
-1
TxBrowser.js
src/TxBrowser.js
+1
-0
No files found.
src/CalldataPanel.js
View file @
837a695b
...
@@ -23,11 +23,12 @@ CalldataPanel.prototype.init = function () {
...
@@ -23,11 +23,12 @@ CalldataPanel.prototype.init = function () {
self
.
traceManager
.
getCallDataAt
(
index
,
function
(
error
,
calldata
)
{
self
.
traceManager
.
getCallDataAt
(
index
,
function
(
error
,
calldata
)
{
if
(
error
)
{
if
(
error
)
{
self
.
basicPanel
.
data
=
''
console
.
log
(
error
)
console
.
log
(
error
)
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
self
.
basicPanel
.
data
=
self
.
format
(
calldata
)
self
.
basicPanel
.
data
=
self
.
format
(
calldata
)
self
.
basicPanel
.
update
()
}
}
self
.
basicPanel
.
update
()
})
})
})
})
}
}
...
...
src/CallstackPanel.js
View file @
837a695b
...
@@ -24,10 +24,11 @@ CallstackPanel.prototype.init = function () {
...
@@ -24,10 +24,11 @@ CallstackPanel.prototype.init = function () {
self
.
traceManager
.
getCallStackAt
(
index
,
function
(
error
,
callstack
)
{
self
.
traceManager
.
getCallStackAt
(
index
,
function
(
error
,
callstack
)
{
if
(
error
)
{
if
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
self
.
basicPanel
.
data
=
''
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
self
.
basicPanel
.
data
=
self
.
format
(
callstack
)
self
.
basicPanel
.
data
=
self
.
format
(
callstack
)
self
.
basicPanel
.
update
()
}
}
self
.
basicPanel
.
update
()
})
})
})
})
}
}
...
...
src/Ethdebugger.js
View file @
837a695b
...
@@ -24,6 +24,9 @@ function Ethdebugger (_context) {
...
@@ -24,6 +24,9 @@ function Ethdebugger (_context) {
this
.
txBrowser
.
register
(
'newTxRequested'
,
this
,
function
(
blockNumber
,
txIndex
,
tx
)
{
this
.
txBrowser
.
register
(
'newTxRequested'
,
this
,
function
(
blockNumber
,
txIndex
,
tx
)
{
self
.
startDebugging
(
blockNumber
,
txIndex
,
tx
)
self
.
startDebugging
(
blockNumber
,
txIndex
,
tx
)
})
})
this
.
txBrowser
.
register
(
'unloadRequested'
,
this
,
function
(
blockNumber
,
txIndex
,
tx
)
{
self
.
unLoad
()
})
this
.
stepManager
=
new
StepManager
(
this
,
this
.
traceManager
)
this
.
stepManager
=
new
StepManager
(
this
,
this
.
traceManager
)
this
.
stepManager
.
register
(
'stepChanged'
,
this
,
function
(
stepIndex
)
{
this
.
stepManager
.
register
(
'stepChanged'
,
this
,
function
(
stepIndex
)
{
self
.
stepChanged
(
stepIndex
)
self
.
stepChanged
(
stepIndex
)
...
@@ -36,7 +39,6 @@ Ethdebugger.prototype.render = function () {
...
@@ -36,7 +39,6 @@ Ethdebugger.prototype.render = function () {
return
(
return
(
yo
`<div style=
${
ui
.
formatCss
(
style
.
font
)}
>
yo
`<div style=
${
ui
.
formatCss
(
style
.
font
)}
>
<h1 style=
${
ui
.
formatCss
(
style
.
container
)}
>Eth Debugger</h1>
<h1 style=
${
ui
.
formatCss
(
style
.
container
)}
>Eth Debugger</h1>
<div onclick=
${
function
()
{
self
.
unLoad
()
}
}>X</div>
${
this
.
txBrowser
.
render
()}
${
this
.
txBrowser
.
render
()}
${
this
.
stepManager
.
render
()}
${
this
.
stepManager
.
render
()}
${
this
.
vmDebugger
.
render
()}
${
this
.
vmDebugger
.
render
()}
...
...
src/MemoryPanel.js
View file @
837a695b
...
@@ -25,10 +25,11 @@ MemoryPanel.prototype.init = function () {
...
@@ -25,10 +25,11 @@ MemoryPanel.prototype.init = function () {
self
.
traceManager
.
getMemoryAt
(
index
,
function
(
error
,
memory
)
{
self
.
traceManager
.
getMemoryAt
(
index
,
function
(
error
,
memory
)
{
if
(
error
)
{
if
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
self
.
basicPanel
.
data
=
''
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
self
.
basicPanel
.
data
=
util
.
formatMemory
(
memory
,
16
)
self
.
basicPanel
.
data
=
util
.
formatMemory
(
memory
,
16
)
self
.
basicPanel
.
update
()
}
}
self
.
basicPanel
.
update
()
})
})
})
})
}
}
...
...
src/Slider.js
View file @
837a695b
...
@@ -23,6 +23,7 @@ Slider.prototype.render = function () {
...
@@ -23,6 +23,7 @@ Slider.prototype.render = function () {
type='range'
type='range'
min=0
min=0
max=
${
this
.
max
}
max=
${
this
.
max
}
value=0
onmouseup=
${
function
()
{
self
.
onMouseUp
()
}
}
onmouseup=
${
function
()
{
self
.
onMouseUp
()
}
}
disabled=
${
this
.
disabled
}
/>
disabled=
${
this
.
disabled
}
/>
</div>`
</div>`
...
...
src/StackPanel.js
View file @
837a695b
...
@@ -23,11 +23,12 @@ StackPanel.prototype.init = function () {
...
@@ -23,11 +23,12 @@ StackPanel.prototype.init = function () {
self
.
traceManager
.
getStackAt
(
index
,
function
(
error
,
stack
)
{
self
.
traceManager
.
getStackAt
(
index
,
function
(
error
,
stack
)
{
if
(
error
)
{
if
(
error
)
{
self
.
basicPanel
.
data
=
''
console
.
log
(
error
)
console
.
log
(
error
)
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
self
.
basicPanel
.
data
=
self
.
format
(
stack
)
self
.
basicPanel
.
data
=
self
.
format
(
stack
)
self
.
basicPanel
.
update
()
}
}
self
.
basicPanel
.
update
()
})
})
})
})
}
}
...
...
src/Sticker.js
View file @
837a695b
...
@@ -78,37 +78,41 @@ Sticker.prototype.init = function () {
...
@@ -78,37 +78,41 @@ Sticker.prototype.init = function () {
self
.
traceManager
.
getCurrentStep
(
index
,
function
(
error
,
step
)
{
self
.
traceManager
.
getCurrentStep
(
index
,
function
(
error
,
step
)
{
if
(
error
)
{
if
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
self
.
step
=
''
}
else
{
}
else
{
self
.
step
=
step
self
.
step
=
step
yo
.
update
(
self
.
view
,
self
.
render
())
}
}
yo
.
update
(
self
.
view
,
self
.
render
())
})
})
self
.
traceManager
.
getMemExpand
(
index
,
function
(
error
,
addmem
)
{
self
.
traceManager
.
getMemExpand
(
index
,
function
(
error
,
addmem
)
{
if
(
error
)
{
if
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
self
.
addmemory
=
''
}
else
{
}
else
{
self
.
addmemory
=
addmem
self
.
addmemory
=
addmem
yo
.
update
(
self
.
view
,
self
.
render
())
}
}
yo
.
update
(
self
.
view
,
self
.
render
())
})
})
self
.
traceManager
.
getStepCost
(
index
,
function
(
error
,
gas
)
{
self
.
traceManager
.
getStepCost
(
index
,
function
(
error
,
gas
)
{
if
(
error
)
{
if
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
self
.
gas
=
gas
}
else
{
}
else
{
self
.
gas
=
gas
self
.
gas
=
gas
yo
.
update
(
self
.
view
,
self
.
render
())
}
}
yo
.
update
(
self
.
view
,
self
.
render
())
})
})
self
.
traceManager
.
getRemainingGas
(
index
,
function
(
error
,
remaingas
)
{
self
.
traceManager
.
getRemainingGas
(
index
,
function
(
error
,
remaingas
)
{
if
(
error
)
{
if
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
self
.
remainingGas
=
''
}
else
{
}
else
{
self
.
remainingGas
=
remaingas
self
.
remainingGas
=
remaingas
yo
.
update
(
self
.
view
,
self
.
render
())
}
}
yo
.
update
(
self
.
view
,
self
.
render
())
})
})
})
})
}
}
...
...
src/StoragePanel.js
View file @
837a695b
...
@@ -24,10 +24,11 @@ StoragePanel.prototype.init = function () {
...
@@ -24,10 +24,11 @@ StoragePanel.prototype.init = function () {
self
.
traceManager
.
getStorageAt
(
index
,
self
.
parent
.
tx
,
function
(
error
,
storage
)
{
self
.
traceManager
.
getStorageAt
(
index
,
self
.
parent
.
tx
,
function
(
error
,
storage
)
{
if
(
error
)
{
if
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
self
.
basicPanel
.
data
=
self
.
formatStorage
(
storage
)
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
self
.
basicPanel
.
data
=
self
.
formatStorage
(
storage
)
self
.
basicPanel
.
data
=
self
.
formatStorage
(
storage
)
self
.
basicPanel
.
update
()
}
}
self
.
basicPanel
.
update
()
})
})
})
})
}
}
...
...
src/TxBrowser.js
View file @
837a695b
...
@@ -78,6 +78,7 @@ TxBrowser.prototype.render = function () {
...
@@ -78,6 +78,7 @@ TxBrowser.prototype.render = function () {
<button onclick=
${
function
()
{
self
.
submit
()
}
}>
<button onclick=
${
function
()
{
self
.
submit
()
}
}>
Get
Get
</button>
</button>
<button onclick=
${
function
()
{
self
.
trigger
(
'unloadRequested'
)
}
}>Unload</button>
<div style=
${
ui
.
formatCss
(
style
.
transactionInfo
)}
>
<div style=
${
ui
.
formatCss
(
style
.
transactionInfo
)}
>
<table>
<table>
<tbody>
<tbody>
...
...
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