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
d63eb94a
Unverified
Commit
d63eb94a
authored
Nov 04, 2019
by
Liana Husikyan
Committed by
GitHub
Nov 04, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2416 from ethereum/debugger_text
debugger text improvment
parents
38ffe9fd
b3f54604
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
31 deletions
+39
-31
VmDebugger.js
src/app/tabs/debugger/debuggerUI/VmDebugger.js
+23
-19
MemoryPanel.js
src/app/tabs/debugger/debuggerUI/vmDebugger/MemoryPanel.js
+1
-1
StackPanel.js
src/app/tabs/debugger/debuggerUI/vmDebugger/StackPanel.js
+1
-1
SolidityTypeFormatter.js
...gger/debuggerUI/vmDebugger/utils/SolidityTypeFormatter.js
+14
-10
No files found.
src/app/tabs/debugger/debuggerUI/VmDebugger.js
View file @
d63eb94a
...
@@ -123,12 +123,14 @@ function VmDebugger (vmDebuggerLogic) {
...
@@ -123,12 +123,14 @@ function VmDebugger (vmDebuggerLogic) {
}
}
VmDebugger
.
prototype
.
renderHead
=
function
()
{
VmDebugger
.
prototype
.
renderHead
=
function
()
{
var
headView
=
yo
`<div id='vmheadView' class="
${
css
.
vmheadView
}
container">
const
headView
=
yo
`
<div class="row" >
<div id="vmheadView" class="
${
css
.
vmheadView
}
container">
<div class="
${
css
.
asmCode
}
column">
${
this
.
asmCode
.
render
()}
</div>
<div class="row" >
<div class="
${
css
.
stepDetail
}
column">
${
this
.
stepDetail
.
render
()}
</div>
<div class="
${
css
.
asmCode
}
column">
${
this
.
asmCode
.
render
()}
</div>
</div>
<div class="
${
css
.
stepDetail
}
column">
${
this
.
stepDetail
.
render
()}
</div>
</div>`
</div>
</div>
`
if
(
!
this
.
headView
)
{
if
(
!
this
.
headView
)
{
this
.
headView
=
headView
this
.
headView
=
headView
}
}
...
@@ -141,19 +143,21 @@ VmDebugger.prototype.remove = function () {
...
@@ -141,19 +143,21 @@ VmDebugger.prototype.remove = function () {
}
}
VmDebugger
.
prototype
.
render
=
function
()
{
VmDebugger
.
prototype
.
render
=
function
()
{
var
view
=
yo
`<div id='vmdebugger'>
const
view
=
yo
`
<div>
<div id="vmdebugger">
${
this
.
solidityLocals
.
render
()}
<div>
${
this
.
solidityState
.
render
()}
${
this
.
solidityLocals
.
render
()}
${
this
.
stackPanel
.
render
()}
${
this
.
solidityState
.
render
()}
${
this
.
memoryPanel
.
render
()}
${
this
.
stackPanel
.
render
()}
${
this
.
storagePanel
.
render
()}
${
this
.
memoryPanel
.
render
()}
${
this
.
callstackPanel
.
render
()}
${
this
.
storagePanel
.
render
()}
${
this
.
calldataPanel
.
render
()}
${
this
.
callstackPanel
.
render
()}
${
this
.
returnValuesPanel
.
render
()}
${
this
.
calldataPanel
.
render
()}
${
this
.
fullStoragesChangesPanel
.
render
()}
${
this
.
returnValuesPanel
.
render
()}
</div>
${
this
.
fullStoragesChangesPanel
.
render
()}
</div>`
</div>
</div>
`
if
(
!
this
.
view
)
{
if
(
!
this
.
view
)
{
this
.
view
=
view
this
.
view
=
view
}
}
...
...
src/app/tabs/debugger/debuggerUI/vmDebugger/MemoryPanel.js
View file @
d63eb94a
...
@@ -15,7 +15,7 @@ MemoryPanel.prototype.update = function (calldata) {
...
@@ -15,7 +15,7 @@ MemoryPanel.prototype.update = function (calldata) {
}
}
MemoryPanel
.
prototype
.
render
=
function
()
{
MemoryPanel
.
prototype
.
render
=
function
()
{
return
yo
`<div id=
'memorypanel'
>
${
this
.
basicPanel
.
render
()}
</div>`
return
yo
`<div id=
"memorypanel" class="text-monospace small"
>
${
this
.
basicPanel
.
render
()}
</div>`
}
}
module
.
exports
=
MemoryPanel
module
.
exports
=
MemoryPanel
src/app/tabs/debugger/debuggerUI/vmDebugger/StackPanel.js
View file @
d63eb94a
...
@@ -11,7 +11,7 @@ StackPanel.prototype.update = function (calldata) {
...
@@ -11,7 +11,7 @@ StackPanel.prototype.update = function (calldata) {
}
}
StackPanel
.
prototype
.
render
=
function
()
{
StackPanel
.
prototype
.
render
=
function
()
{
return
yo
`<div id=
'stackpanel'
>
${
this
.
basicPanel
.
render
()}
</div>`
return
yo
`<div id=
"stackpanel" class="text-monospace small"
>
${
this
.
basicPanel
.
render
()}
</div>`
}
}
module
.
exports
=
StackPanel
module
.
exports
=
StackPanel
src/app/tabs/debugger/debuggerUI/vmDebugger/utils/SolidityTypeFormatter.js
View file @
d63eb94a
...
@@ -7,8 +7,8 @@ module.exports = {
...
@@ -7,8 +7,8 @@ module.exports = {
}
}
function
formatSelf
(
key
,
data
)
{
function
formatSelf
(
key
,
data
)
{
var
style
=
fontColor
(
data
)
const
style
=
fontColor
(
data
)
var
keyStyle
=
data
.
isProperty
?
'color:#847979
'
:
''
const
keyStyle
=
data
.
isProperty
?
'color: var(--info)
'
:
''
if
(
data
.
type
===
'string'
)
{
if
(
data
.
type
===
'string'
)
{
data
.
self
=
JSON
.
stringify
(
data
.
self
)
data
.
self
=
JSON
.
stringify
(
data
.
self
)
}
}
...
@@ -55,16 +55,20 @@ function extractData (item, parent, key) {
...
@@ -55,16 +55,20 @@ function extractData (item, parent, key) {
}
}
function
fontColor
(
data
)
{
function
fontColor
(
data
)
{
var
color
=
'#124B46
'
let
color
=
'var(--primary)
'
if
(
data
.
isArray
||
data
.
isStruct
||
data
.
isMapping
)
{
if
(
data
.
isArray
||
data
.
isStruct
||
data
.
isMapping
)
{
color
=
'#847979'
color
=
'var(--info)'
}
else
if
(
data
.
type
.
indexOf
(
'uint'
)
===
0
||
}
else
if
(
data
.
type
.
indexOf
(
'int'
)
===
0
||
data
.
type
.
indexOf
(
'uint'
)
===
0
||
data
.
type
.
indexOf
(
'bool'
)
===
0
||
data
.
type
.
indexOf
(
'int'
)
===
0
||
data
.
type
.
indexOf
(
'enum'
)
===
0
)
{
data
.
type
.
indexOf
(
'bool'
)
===
0
||
color
=
'#0F0CE9'
data
.
type
.
indexOf
(
'enum'
)
===
0
)
{
color
=
'var(--green)'
}
else
if
(
data
.
type
===
'string'
)
{
}
else
if
(
data
.
type
===
'string'
)
{
color
=
'#E91E0C'
color
=
'var(--teal)'
}
else
if
(
data
.
self
==
0x0
)
{
// eslint-disable-line
color
=
'var(--gray)'
}
}
return
'color:'
+
color
return
'color:'
+
color
}
}
...
...
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