netease-youdao / hex

heX
Other
1.52k stars 300 forks source link

HeXium里头如何调试nodejs部分的代码啊 #34

Open xbdtb opened 10 years ago

xbdtb commented 10 years ago

HeXium里可以调试前端js代码,但是碰到require nodejs模块时如何进入调试

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hello World</title>
<link href="hello.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Loading...</h1>
<script>
  require('./test/hello_world');
</script>
</body>
</html>

如以上代码,在内容处可以下断点,也能正常进入断点,但是无法step in,在调试窗口的sources里也查看不到相应的文件,该如何处理?

luyuan commented 10 years ago

我们正在努力实现node.js 内部代码的debugging

xbdtb commented 10 years ago

好的,原来还没实现,期待这一个功能,