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
457bad4f
Commit
457bad4f
authored
Feb 02, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass currentStep
parent
09a58f5c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
breakpointManager.js
src/code/breakpointManager.js
+4
-4
No files found.
src/code/breakpointManager.js
View file @
457bad4f
...
...
@@ -20,7 +20,7 @@ class breakpointManager {
}
catch
(
e
)
{
console
.
log
(
'cannot jump to breakpoint '
+
e
.
message
)
}
if
(
this
.
checkSourceLocation
(
sourceLocation
))
{
if
(
this
.
checkSourceLocation
(
sourceLocation
,
currentStep
))
{
this
.
debugger
.
stepManager
.
jumpTo
(
currentStep
)
this
.
event
.
trigger
(
'breakpointHit'
,
[
sourceLocation
])
break
...
...
@@ -29,15 +29,15 @@ class breakpointManager {
}
}
checkSourceLocation
(
sourceLocation
)
{
checkSourceLocation
(
sourceLocation
,
currentStep
)
{
if
(
this
.
breakpoints
[
sourceLocation
.
file
])
{
var
sources
=
this
.
breakpoints
[
sourceLocation
.
file
]
for
(
var
k
in
sources
)
{
var
source
=
sources
[
k
]
if
(
sourceLocation
.
start
>=
source
.
start
&&
sourceLocation
.
start
<
source
.
end
&&
(
this
.
breakpointHits
[
source
.
file
][
source
.
row
]
===
this
.
debugger
.
currentStepIndex
||
this
.
breakpointHits
[
source
.
file
][
source
.
row
]
===
-
1
))
{
this
.
breakpointHits
[
source
.
file
][
source
.
row
]
=
this
.
debugger
.
currentStepIndex
(
this
.
breakpointHits
[
source
.
file
][
source
.
row
]
===
currentStep
||
this
.
breakpointHits
[
source
.
file
][
source
.
row
]
===
-
1
))
{
this
.
breakpointHits
[
source
.
file
][
source
.
row
]
=
currentStep
return
true
}
}
...
...
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