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
9c57922a
Commit
9c57922a
authored
Dec 15, 2016
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename includeLocalsVariables -> includeLocalVariables
parent
7b779306
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Ethdebugger.js
src/ui/Ethdebugger.js
+1
-1
internalCallTree.js
src/util/internalCallTree.js
+2
-2
localDecoder.js
test/solidity/localDecoder.js
+1
-1
No files found.
src/ui/Ethdebugger.js
View file @
9c57922a
...
...
@@ -30,7 +30,7 @@ function Ethdebugger () {
this
.
codeManager
=
new
CodeManager
(
this
.
traceManager
)
this
.
solidityProxy
=
new
SolidityProxy
(
this
.
traceManager
,
this
.
codeManager
)
var
callTree
=
new
InternalCallTree
(
this
.
event
,
this
.
traceManager
,
this
.
solidityProxy
,
this
.
codeManager
,
{
includeLocal
s
Variables
:
true
})
var
callTree
=
new
InternalCallTree
(
this
.
event
,
this
.
traceManager
,
this
.
solidityProxy
,
this
.
codeManager
,
{
includeLocalVariables
:
true
})
this
.
event
.
register
(
'indexChanged'
,
this
,
function
(
index
)
{
self
.
codeManager
.
resolveStep
(
index
,
self
.
tx
)
...
...
src/util/internalCallTree.js
View file @
9c57922a
...
...
@@ -7,7 +7,7 @@ var util = require('../helpers/util')
class
InternalCallTree
{
constructor
(
debuggerEvent
,
traceManager
,
solidityProxy
,
codeManager
,
opts
)
{
this
.
includeLocal
sVariables
=
opts
.
includeLocals
Variables
this
.
includeLocal
Variables
=
opts
.
includeLocal
Variables
this
.
event
=
new
EventManager
()
this
.
solidityProxy
=
solidityProxy
this
.
traceManager
=
traceManager
...
...
@@ -68,7 +68,7 @@ function buildTree (tree, step, scopeId, trace) {
tree
.
scopes
[
scopeId
].
lastStep
=
step
return
step
+
1
}
else
{
if
(
tree
.
includeLocal
s
Variables
)
{
if
(
tree
.
includeLocalVariables
)
{
var
variableDeclaration
=
resolveVariableDeclaration
(
tree
,
step
,
sourceLocation
)
if
(
variableDeclaration
)
{
if
(
!
tree
.
scopes
[
scopeId
].
locals
)
{
...
...
test/solidity/localDecoder.js
View file @
9c57922a
...
...
@@ -38,7 +38,7 @@ tape('solidity', function (t) {
var
solidityProxy
=
new
SolidityProxy
(
traceManager
,
codeManager
)
solidityProxy
.
reset
(
output
)
var
debuggerEvent
=
new
EventManager
()
var
callTree
=
new
InternalCallTree
(
debuggerEvent
,
traceManager
,
solidityProxy
,
codeManager
,
{
includeLocal
s
Variables
:
true
})
var
callTree
=
new
InternalCallTree
(
debuggerEvent
,
traceManager
,
solidityProxy
,
codeManager
,
{
includeLocalVariables
:
true
})
callTree
.
event
.
register
(
'callTreeReady'
,
(
scopes
,
scopeStarts
)
=>
{
st
.
equals
(
scopeStarts
[
0
],
''
)
st
.
equals
(
scopeStarts
[
97
],
'1'
)
...
...
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