projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d7aade
)
[debugger] more informative break message (reverting back partially)
author
Fedor Indutny
<fedor.indutny@gmail.com>
Sat, 10 Sep 2011 05:38:42 +0000
(12:38 +0700)
committer
Fedor Indutny
<fedor.indutny@gmail.com>
Sat, 10 Sep 2011 05:48:21 +0000
(12:48 +0700)
lib/_debugger.js
patch
|
blob
|
history
diff --git
a/lib/_debugger.js
b/lib/_debugger.js
index
19dbc68
..
89b4392
100644
(file)
--- a/
lib/_debugger.js
+++ b/
lib/_debugger.js
@@
-616,14
+616,20
@@
function SourceUnderline(sourceText, position) {
}
+function SourceInvocation(body) {
+ return body.invocationText.replace(/\n/g, '')
+ .replace(/^([^(]*)\(.*\)([^)]*)$/, '$1(...)$2');
+}
+
+
function SourceInfo(body) {
- var result = '
'
;
+ var result = '
break in ' + SourceInvocation(body)
;
if (body.script) {
if (body.script.name) {
- result += body.script.name;
+ result +=
', ' +
body.script.name;
} else {
- result += '[unnamed]';
+ result += '
,
[unnamed]';
}
}
result += ':';