我想调试从已babel编译的ES6文件运行的节点应用程序.我有一个src文件夹中的ES6源代码和文件夹中的babel ES5等效项build.
Project root
|
| build
| > ES5 Compiled files
|
| src
| > ES6 Source files
Run Code Online (Sandbox Code Playgroud)
我的目标:将断点直接放在我的ES6源代码中.
我已经生成了正确的源映射,我做了一个节点调试配置,运行ES5主文件,项目根目录设置为工作目录.我在ES5编译文件中设置断点时可以中断,它会自动显示我的ES6源.
但是我想直接在ES6源中放置断点.
这甚至可能吗?
-
> 2015-10-11编辑<
当我使用绝对值时,源映射现在可以很好地使用@ mockaroodev的配置sourceRoot!
然而,调试仍然被打破:踩到一条线有时会让我处于意想不到的地方.似乎当行require以某种方式暗示非内部(非本机)时,调试器将在所需内容的末尾中断.这非常烦人!
我在Linux上使用Webstorm 10.0.4并将babel和sourcemaps升级到最新版本.
有人也遇到过这个问题吗?
我有一个JavaScript文件AppForm.js,我希望在成功的ajax post响应后重新初始化.
文件本身包含等等
(function(namespace, $) {
"use strict";
var AppForm = function() {
// Create reference to this instance
var o = this;
// Initialize app when document is ready
$(document).ready(function() {
o.initialize();
});
};
var p = AppForm.prototype;
p.initialize = function() {
// Init events
this._enableEvents();
this._initRadioAndCheckbox();
this._initFloatingLabels();
this._initValidation();
};
p._enableEvents = function () {
//blah blah blah
e.preventDefault();
};
p._initRadioAndCheckbox = function () {
};
p._initFloatingLabels = function () {
};
p._initValidation = function () { …Run Code Online (Sandbox Code Playgroud) 我想使用 git-svn 来处理具有以下结构的现有 SVN 存储库:
http://thesvn/project
branch1
branch2
...
Run Code Online (Sandbox Code Playgroud)
我无法配置 svn remote 以正确获取分支。目前我有这个配置:
[svn-remote "svn"]
url = http://thesvn/project
branches = *:refs/remotes/branches/*
Run Code Online (Sandbox Code Playgroud)
当我尝试时git svn fetch svn,我得到以下信息:
ref: 'refs/remotes/' ends with a trailing slash; this is not permitted by git or Subversion
Run Code Online (Sandbox Code Playgroud)
请注意,我正在使用 msysgit 在 Windows 上工作。有什么建议吗?
ajax ×1
debugging ×1
ecmascript-6 ×1
git ×1
git-svn ×1
javascript ×1
jquery ×1
msysgit ×1
node.js ×1
source-maps ×1
webstorm ×1