Skip to content

Instantly share code, notes, and snippets.

@tenntenn
Created December 28, 2014 04:04
Show Gist options
  • Save tenntenn/cf83c8e83673c88d6ec7 to your computer and use it in GitHub Desktop.
Save tenntenn/cf83c8e83673c88d6ec7 to your computer and use it in GitHub Desktop.
sourcemap使ってLuaのデバッガのフロントエンドを作る
<!doctype html>
<html>
<head>
<script>
line = {}
</script>
<script src="sample.js"></script>
<script>
line[2]()
</script>
</head>
<body>
</body>
</html>
line[1] = function(vars){var a = 100}
line[2] = function(vars){var a = 100}
line[3] = function(vars){var a = 100}
line[4] = function(vars){var a = 100}
line[5] = function(vars){var a = 100}
line[6] = function(vars){var a = 100}
//# sourceMappingURL=sample.map
function hoge()
local msg = "hello"
print(msg)
end
hoge()
{
"version" : 3,
"file": "sample.js",
"sourceRoot": "",
"sources": ["sample.lua"],
"sourcesContent": [null],
"names": ["vars"],
"mappings": "AAAA;AABA;AACA;AADA;;AAEA"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment