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
69ac0c80
Commit
69ac0c80
authored
Feb 20, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jumpTo
parent
49b1a3f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
breakpointManager.js
src/code/breakpointManager.js
+10
-7
No files found.
src/code/breakpointManager.js
View file @
69ac0c80
...
...
@@ -54,8 +54,8 @@ class BreakpointManager {
function
hitLine
(
currentStep
,
sourceLocation
,
self
)
{
if
(
helper
.
isJumpDestInstruction
(
self
.
debugger
.
traceManager
.
trace
[
currentStep
])
||
helper
.
isReturnInstruction
(
self
.
debugger
.
traceManager
.
trace
[
currentStep
-
1
])
||
helper
.
isStopInstruction
(
self
.
debugger
.
traceManager
.
trace
[
currentStep
-
1
]))
{
helper
.
isReturnInstruction
(
self
.
debugger
.
traceManager
.
trace
[
currentStep
-
1
])
||
helper
.
isStopInstruction
(
self
.
debugger
.
traceManager
.
trace
[
currentStep
-
1
]))
{
return
false
}
else
{
self
.
debugger
.
stepManager
.
jumpTo
(
currentStep
)
...
...
@@ -80,7 +80,7 @@ class BreakpointManager {
if
(
this
.
previousLine
!==
lineColumn
.
start
.
line
)
{
if
(
direction
===
-
1
&&
lineHadBreakpoint
)
{
// TODO : improve this when we will build the correct structure before hand
if
(
hitLine
(
currentStep
+
1
,
previousSourceLocation
,
this
))
{
break
return
}
else
{
lineHadBreakpoint
=
false
}
...
...
@@ -90,7 +90,7 @@ class BreakpointManager {
lineHadBreakpoint
=
true
if
(
direction
===
1
)
{
if
(
hitLine
(
currentStep
,
sourceLocation
,
this
))
{
break
return
}
else
{
lineHadBreakpoint
=
false
}
...
...
@@ -98,9 +98,12 @@ class BreakpointManager {
}
}
currentStep
+=
direction
if
(
defaultToLimit
&&
(
currentStep
===
this
.
debugger
.
traceManager
.
trace
.
length
-
1
||
currentStep
===
0
))
{
this
.
debugger
.
stepManager
.
jumpTo
(
currentStep
)
break
}
if
(
defaultToLimit
)
{
if
(
direction
===
-
1
)
{
this
.
debugger
.
stepManager
.
jumpTo
(
0
)
}
else
if
(
direction
===
1
)
{
this
.
debugger
.
stepManager
.
jumpTo
(
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