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
37eff056
Commit
37eff056
authored
Feb 09, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc
parent
906073d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
breakpointManager.js
src/code/breakpointManager.js
+4
-2
No files found.
src/code/breakpointManager.js
View file @
37eff056
...
@@ -47,6 +47,7 @@ class BreakpointManager {
...
@@ -47,6 +47,7 @@ class BreakpointManager {
*/
*/
async
jump
(
direction
,
defaultToLimit
)
{
async
jump
(
direction
,
defaultToLimit
)
{
if
(
!
this
.
locationToRowConverter
)
{
if
(
!
this
.
locationToRowConverter
)
{
console
.
log
(
'row converter not provided'
)
return
return
}
}
var
sourceLocation
var
sourceLocation
...
@@ -56,11 +57,12 @@ class BreakpointManager {
...
@@ -56,11 +57,12 @@ class BreakpointManager {
sourceLocation
=
await
this
.
debugger
.
callTree
.
extractSourceLocation
(
currentStep
)
sourceLocation
=
await
this
.
debugger
.
callTree
.
extractSourceLocation
(
currentStep
)
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
'cannot jump to breakpoint '
+
e
)
console
.
log
(
'cannot jump to breakpoint '
+
e
)
return
}
}
var
lineColumn
=
this
.
locationToRowConverter
(
sourceLocation
)
var
lineColumn
=
this
.
locationToRowConverter
(
sourceLocation
)
if
(
this
.
previousLine
!==
lineColumn
.
start
.
line
)
{
if
(
this
.
previousLine
!==
lineColumn
.
start
.
line
)
{
this
.
previousLine
=
lineColumn
.
start
.
line
this
.
previousLine
=
lineColumn
.
start
.
line
if
(
this
.
checkSourceLocation
(
sourceLocation
.
file
,
lineColumn
.
start
.
line
))
{
if
(
this
.
hasBreakpointAtLine
(
sourceLocation
.
file
,
lineColumn
.
start
.
line
))
{
this
.
debugger
.
stepManager
.
jumpTo
(
currentStep
)
this
.
debugger
.
stepManager
.
jumpTo
(
currentStep
)
this
.
event
.
trigger
(
'breakpointHit'
,
[
sourceLocation
])
this
.
event
.
trigger
(
'breakpointHit'
,
[
sourceLocation
])
break
break
...
@@ -81,7 +83,7 @@ class BreakpointManager {
...
@@ -81,7 +83,7 @@ class BreakpointManager {
* @param {Int} line - line number where looking for breakpoint
* @param {Int} line - line number where looking for breakpoint
* @return {Bool} return true if the given @arg fileIndex @arg line refers to a breakpoint
* @return {Bool} return true if the given @arg fileIndex @arg line refers to a breakpoint
*/
*/
checkSourceLocation
(
fileIndex
,
line
)
{
hasBreakpointAtLine
(
fileIndex
,
line
)
{
if
(
this
.
breakpoints
[
fileIndex
])
{
if
(
this
.
breakpoints
[
fileIndex
])
{
var
sources
=
this
.
breakpoints
[
fileIndex
]
var
sources
=
this
.
breakpoints
[
fileIndex
]
for
(
var
k
in
sources
)
{
for
(
var
k
in
sources
)
{
...
...
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