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
3b6666c9
Commit
3b6666c9
authored
Sep 13, 2019
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using scope
parent
35dd0a1a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
stepManager.js
remix-debug/src/debugger/stepManager.js
+4
-1
internalCallTree.js
remix-debug/src/solidity-decoder/internalCallTree.js
+0
-4
traceManager.js
remix-lib/src/trace/traceManager.js
+2
-2
traceStepManager.js
remix-lib/src/trace/traceStepManager.js
+2
-2
No files found.
remix-debug/src/debugger/stepManager.js
View file @
3b6666c9
...
@@ -122,7 +122,10 @@ class DebuggerStepManager {
...
@@ -122,7 +122,10 @@ class DebuggerStepManager {
stepOverForward
(
solidityMode
)
{
stepOverForward
(
solidityMode
)
{
if
(
!
this
.
traceManager
.
isLoaded
())
return
if
(
!
this
.
traceManager
.
isLoaded
())
return
var
step
=
this
.
traceManager
.
findStepOverForward
(
this
.
currentStepIndex
,
this
.
debugger
.
callTree
.
internalFunctionCalls
.
includes
((
this
.
currentStepIndex
)))
let
scope
=
this
.
debugger
.
callTree
.
findScope
(
this
.
currentStepIndex
)
if
(
scope
&&
scope
.
firstStep
===
this
.
currentStepIndex
)
{
var
step
=
scope
.
lastStep
}
if
(
solidityMode
)
{
if
(
solidityMode
)
{
step
=
this
.
resolveToReducedTrace
(
step
,
1
)
step
=
this
.
resolveToReducedTrace
(
step
,
1
)
}
}
...
...
remix-debug/src/solidity-decoder/internalCallTree.js
View file @
3b6666c9
...
@@ -29,7 +29,6 @@ class InternalCallTree {
...
@@ -29,7 +29,6 @@ class InternalCallTree {
this
.
solidityProxy
=
solidityProxy
this
.
solidityProxy
=
solidityProxy
this
.
traceManager
=
traceManager
this
.
traceManager
=
traceManager
this
.
sourceLocationTracker
=
new
SourceLocationTracker
(
codeManager
)
this
.
sourceLocationTracker
=
new
SourceLocationTracker
(
codeManager
)
this
.
internalFunctionCalls
=
[]
debuggerEvent
.
register
(
'newTraceLoaded'
,
(
trace
)
=>
{
debuggerEvent
.
register
(
'newTraceLoaded'
,
(
trace
)
=>
{
this
.
reset
()
this
.
reset
()
if
(
!
this
.
solidityProxy
.
loaded
())
{
if
(
!
this
.
solidityProxy
.
loaded
())
{
...
@@ -158,9 +157,6 @@ async function buildTree (tree, step, scopeId, isExternalCall) {
...
@@ -158,9 +157,6 @@ async function buildTree (tree, step, scopeId, isExternalCall) {
// we are checking if we are jumping in a new CALL or in an internal function
// we are checking if we are jumping in a new CALL or in an internal function
if
(
isCallInstruction
||
sourceLocation
.
jump
===
'i'
)
{
if
(
isCallInstruction
||
sourceLocation
.
jump
===
'i'
)
{
try
{
try
{
if
(
sourceLocation
.
jump
===
'i'
)
{
this
.
internalFunctionCalls
.
push
(
step
)
}
var
externalCallResult
=
await
buildTree
(
tree
,
step
+
1
,
scopeId
===
''
?
subScope
.
toString
()
:
scopeId
+
'.'
+
subScope
,
isCallInstruction
)
var
externalCallResult
=
await
buildTree
(
tree
,
step
+
1
,
scopeId
===
''
?
subScope
.
toString
()
:
scopeId
+
'.'
+
subScope
,
isCallInstruction
)
if
(
externalCallResult
.
error
)
{
if
(
externalCallResult
.
error
)
{
return
{
outStep
:
step
,
error
:
'InternalCallTree - '
+
externalCallResult
.
error
}
return
{
outStep
:
step
,
error
:
'InternalCallTree - '
+
externalCallResult
.
error
}
...
...
remix-lib/src/trace/traceManager.js
View file @
3b6666c9
...
@@ -239,8 +239,8 @@ TraceManager.prototype.findStepOverBack = function (currentStep) {
...
@@ -239,8 +239,8 @@ TraceManager.prototype.findStepOverBack = function (currentStep) {
return
this
.
traceStepManager
.
findStepOverBack
(
currentStep
)
return
this
.
traceStepManager
.
findStepOverBack
(
currentStep
)
}
}
TraceManager
.
prototype
.
findStepOverForward
=
function
(
currentStep
,
isInternalCall
=
false
)
{
TraceManager
.
prototype
.
findStepOverForward
=
function
(
currentStep
)
{
return
this
.
traceStepManager
.
findStepOverForward
(
currentStep
,
isInternalCall
)
return
this
.
traceStepManager
.
findStepOverForward
(
currentStep
)
}
}
TraceManager
.
prototype
.
findNextCall
=
function
(
currentStep
)
{
TraceManager
.
prototype
.
findNextCall
=
function
(
currentStep
)
{
...
...
remix-lib/src/trace/traceStepManager.js
View file @
3b6666c9
...
@@ -26,8 +26,8 @@ TraceStepManager.prototype.findStepOverBack = function (currentStep) {
...
@@ -26,8 +26,8 @@ TraceStepManager.prototype.findStepOverBack = function (currentStep) {
}
}
}
}
TraceStepManager
.
prototype
.
findStepOverForward
=
function
(
currentStep
,
isInternalCall
)
{
TraceStepManager
.
prototype
.
findStepOverForward
=
function
(
currentStep
)
{
if
(
this
.
isCallInstruction
(
currentStep
)
||
isInternalCall
)
{
if
(
this
.
isCallInstruction
(
currentStep
))
{
var
call
=
util
.
findCall
(
currentStep
+
1
,
this
.
traceAnalyser
.
traceCache
.
callsTree
.
call
)
var
call
=
util
.
findCall
(
currentStep
+
1
,
this
.
traceAnalyser
.
traceCache
.
callsTree
.
call
)
return
call
.
return
+
1
<
this
.
traceAnalyser
.
trace
.
length
?
call
.
return
+
1
:
this
.
traceAnalyser
.
trace
.
length
-
1
return
call
.
return
+
1
<
this
.
traceAnalyser
.
trace
.
length
?
call
.
return
+
1
:
this
.
traceAnalyser
.
trace
.
length
-
1
}
else
{
}
else
{
...
...
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