Opal正在生成源地图。我可以在chrome中启用JavaScript源映射,设置它甚至在调试器中停止的断点。但它仍然没有多大实际用途。
到目前为止,我最成功的方法是在生成的Javascript中搜索重要的标识符,而根本不使用源地图。
欢迎任何提示。
答案 0 :(得分:0)
Sourcemaps现在使用Opal Server
在Opal 0.8.0中工作# config.ru
require 'bundler'
Bundler.require
#Opal::Processor.inline_operators_enabled = true
run Opal::Server.new { |s|
s.append_path 'public'
s.append_path 'src'
Opal.use_gem "vector2d"
Opal.paths.each { |p| s.append_path(p) }
#s.use_gem 'vector2d'
# s.debug = true
s.source_map = true
s.main = 'application'
s.index_path = 'index_opal.html.erb'
}