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
96b82178
Commit
96b82178
authored
Aug 22, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add jumpToCallback
parent
3101764e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
breakpointManager.js
remix-lib/src/code/breakpointManager.js
+5
-4
No files found.
remix-lib/src/code/breakpointManager.js
View file @
96b82178
...
...
@@ -15,12 +15,13 @@ class BreakpointManager {
* @param {Object} _debugger - type of EthDebugger
* @return {Function} _locationToRowConverter - function implemented by editor which return a column/line position for a char source location
*/
constructor
(
_debugger
,
_locationToRowConverter
)
{
constructor
(
_debugger
,
_locationToRowConverter
,
_jumpToCallback
)
{
this
.
event
=
new
EventManager
()
this
.
debugger
=
_debugger
this
.
breakpoints
=
{}
this
.
locationToRowConverter
=
_locationToRowConverter
this
.
previousLine
this
.
jumpToCallback
=
_jumpToCallback
}
/**
...
...
@@ -67,7 +68,7 @@ class BreakpointManager {
sourceLocation
.
start
+
sourceLocation
.
length
>=
previousSourceLocation
.
start
+
previousSourceLocation
.
length
))
{
return
false
}
else
{
if
(
self
.
debugger
.
stepManager
)
self
.
debugger
.
stepManager
.
jumpTo
(
currentStep
)
self
.
jumpToCallback
(
currentStep
)
self
.
event
.
trigger
(
'breakpointHit'
,
[
sourceLocation
,
currentStep
])
return
true
}
...
...
@@ -108,9 +109,9 @@ class BreakpointManager {
this
.
event
.
trigger
(
'NoBreakpointHit'
,
[])
if
(
this
.
debugger
.
stepManager
&&
defaultToLimit
)
{
if
(
direction
===
-
1
)
{
this
.
debugger
.
stepManager
.
jumpTo
(
0
)
this
.
jumpToCallback
(
0
)
}
else
if
(
direction
===
1
)
{
this
.
debugger
.
stepManager
.
jumpTo
(
this
.
debugger
.
traceManager
.
trace
.
length
-
1
)
this
.
jumpToCallback
(
this
.
debugger
.
traceManager
.
trace
.
length
-
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