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
4dfdd8a8
Commit
4dfdd8a8
authored
Apr 13, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not recompile if we are in a debug session
parent
62cd8797
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
app.js
src/app.js
+2
-1
debugger.js
src/app/debugger.js
+6
-0
No files found.
src/app.js
View file @
4dfdd8a8
...
...
@@ -380,7 +380,6 @@ var run = function () {
var
fileNames
=
Object
.
keys
(
files
.
list
())
$filesEl
.
find
(
'.file'
).
remove
()
$
(
'#output'
).
empty
()
for
(
var
f
in
fileNames
)
{
var
name
=
fileNames
[
f
]
...
...
@@ -815,6 +814,8 @@ var run = function () {
})
function
runCompiler
()
{
if
(
transactionDebugger
.
isActive
)
return
editorSyncFile
()
var
currentFile
=
ui
.
get
(
'currentFile'
)
if
(
currentFile
)
{
...
...
src/app/debugger.js
View file @
4dfdd8a8
...
...
@@ -11,6 +11,7 @@ function Debugger (id, appAPI, executionContextEvent, editorEvent) {
this
.
sourceMappingDecoder
=
new
remix
.
util
.
SourceMappingDecoder
()
this
.
el
.
appendChild
(
this
.
debugger
.
render
())
this
.
appAPI
=
appAPI
this
.
isActive
=
false
this
.
breakPointManager
=
new
remix
.
code
.
BreakpointManager
(
this
.
debugger
,
(
sourceLocation
)
=>
{
return
appAPI
.
offsetToLineColumn
(
sourceLocation
,
sourceLocation
.
file
,
this
.
editor
,
this
.
appAPI
.
lastCompilationResult
().
data
)
...
...
@@ -33,8 +34,13 @@ function Debugger (id, appAPI, executionContextEvent, editorEvent) {
self
.
switchProvider
(
context
)
})
this
.
debugger
.
event
.
register
(
'newTraceLoaded'
,
this
,
function
()
{
self
.
isActive
=
true
})
this
.
debugger
.
event
.
register
(
'traceUnloaded'
,
this
,
function
()
{
self
.
appAPI
.
currentSourceLocation
(
null
)
self
.
isActive
=
false
})
// unload if a file has changed (but not if tabs were switched)
...
...
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