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
8b8943fc
Commit
8b8943fc
authored
Oct 18, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unneeded console logs; prevent crash when step is out of bounds
parent
c4267d43
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
13 deletions
+5
-13
index.js
remix-debug/src/cmdline/index.js
+0
-8
debugger.js
remix-debug/src/debugger/debugger.js
+4
-0
solidityLocals.js
remix-debug/src/debugger/solidityLocals.js
+1
-1
solidityState.js
remix-debug/src/debugger/solidityState.js
+0
-4
No files found.
remix-debug/src/cmdline/index.js
View file @
8b8943fc
...
@@ -42,10 +42,6 @@ class CmdLine {
...
@@ -42,10 +42,6 @@ class CmdLine {
getSource
()
{
getSource
()
{
const
self
=
this
const
self
=
this
console
.
dir
(
"getSource"
)
console
.
dir
(
this
.
lineColumnPos
)
console
.
dir
(
this
.
filename
)
let
lineColumnPos
=
this
.
lineColumnPos
let
lineColumnPos
=
this
.
lineColumnPos
if
(
!
lineColumnPos
||
!
lineColumnPos
.
start
)
return
;
if
(
!
lineColumnPos
||
!
lineColumnPos
.
start
)
return
;
...
@@ -111,10 +107,6 @@ class CmdLine {
...
@@ -111,10 +107,6 @@ class CmdLine {
displayGlobals
()
{
displayGlobals
()
{
console
.
dir
(
"= displayGlobals"
)
console
.
dir
(
"= displayGlobals"
)
console
.
dir
(
this
.
solidityState
)
console
.
dir
(
this
.
solidityState
)
if
(
this
.
solidityState
&&
this
.
solidityState
.
voters
)
{
console
.
dir
(
this
.
solidityState
.
voters
)
console
.
dir
(
this
.
solidityState
.
voters
.
value
)
}
}
}
}
}
...
...
remix-debug/src/debugger/debugger.js
View file @
8b8943fc
...
@@ -115,6 +115,10 @@ Debugger.prototype.debugTx = function (tx, loadingCb) {
...
@@ -115,6 +115,10 @@ Debugger.prototype.debugTx = function (tx, loadingCb) {
this
.
vmDebuggerLogic
.
start
()
this
.
vmDebuggerLogic
.
start
()
this
.
step_manager
.
event
.
register
(
'stepChanged'
,
this
,
function
(
stepIndex
)
{
this
.
step_manager
.
event
.
register
(
'stepChanged'
,
this
,
function
(
stepIndex
)
{
if
(
!
stepIndex
)
{
return
self
.
event
.
trigger
(
"endDebug"
)
}
self
.
debugger
.
codeManager
.
resolveStep
(
stepIndex
,
tx
)
self
.
debugger
.
codeManager
.
resolveStep
(
stepIndex
,
tx
)
self
.
step_manager
.
event
.
trigger
(
'indexChanged'
,
[
stepIndex
])
self
.
step_manager
.
event
.
trigger
(
'indexChanged'
,
[
stepIndex
])
self
.
vmDebuggerLogic
.
event
.
trigger
(
'indexChanged'
,
[
stepIndex
])
self
.
vmDebuggerLogic
.
event
.
trigger
(
'indexChanged'
,
[
stepIndex
])
...
...
remix-debug/src/debugger/solidityLocals.js
View file @
8b8943fc
...
@@ -40,7 +40,7 @@ class DebuggerSolidityLocals {
...
@@ -40,7 +40,7 @@ class DebuggerSolidityLocals {
self
.
stepManager
.
currentStepIndex
,
self
.
stepManager
.
currentStepIndex
,
(
error
,
result
)
=>
{
(
error
,
result
)
=>
{
if
(
error
)
{
if
(
error
)
{
return
console
.
log
(
error
)
return
error
;
}
}
var
stack
=
result
[
0
].
value
var
stack
=
result
[
0
].
value
var
memory
=
result
[
1
].
value
var
memory
=
result
[
1
].
value
...
...
remix-debug/src/debugger/solidityState.js
View file @
8b8943fc
...
@@ -53,11 +53,7 @@ class DebuggerSolidityState {
...
@@ -53,11 +53,7 @@ class DebuggerSolidityState {
decode
(
index
)
{
decode
(
index
)
{
const
self
=
this
const
self
=
this
console
.
dir
(
"currentStepIndex"
)
console
.
dir
(
self
.
stepManager
.
currentStepIndex
)
self
.
traceManager
.
getCurrentCalledAddressAt
(
self
.
stepManager
.
currentStepIndex
,
function
(
error
,
address
)
{
self
.
traceManager
.
getCurrentCalledAddressAt
(
self
.
stepManager
.
currentStepIndex
,
function
(
error
,
address
)
{
console
.
dir
(
error
)
console
.
dir
(
address
)
if
(
error
)
{
if
(
error
)
{
return
self
.
event
.
trigger
(
'solidityState'
,
[{}])
return
self
.
event
.
trigger
(
'solidityState'
,
[{}])
}
}
...
...
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